iphone-common-codes-ccteam源代码 CCNSObject.h

//
// 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

 

你可能感兴趣的:(iPhone)