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

 

posted @ 2012-01-01 12:03  cc_team  阅读(172)  评论(0)    收藏  举报