//
// CCNSObject.h
// CCFC
//
// Created by xichen on 11-12-17.
// Copyright 2011年 ccteam. All rights reserved.
//
#import <Foundation/Foundation.h>
#define SHOW_RETAIN_COUNT(obj) NSLog(@"retainCount is: %d", [(obj) retainCount])
#define SHOW_RETAIN_COUNT_EX(obj, objStr) \
NSLog(@"%@'s retainCount is: %d", objStr, [(obj)retainCount])
@interface NSObject(cc)
- (void)showRetainCount;
- (IMP)getFuncPtr:(SEL)sel;
+ (IMP)getStaticFuncPtr:(SEL)sel;
@end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCNSObject.h
github地址:https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCNSObject.h
本文详细介绍了CCNSObject类的基本属性和方法,包括显示对象引用计数、获取函数指针、静态函数指针等核心功能。通过实例代码展示了如何使用这些特性,对iOS开发中的对象管理提供了实用指南。
59

被折叠的 条评论
为什么被折叠?



