注:
1.在mac终端可以用find命令可找到头文件,如 find / -name "objc.h"
<pre name="code" class="objc">typedef struct objc_class *Class;
typedef struct objc_object *id; struct objc_object { Class isa; }
@interface NSObject <NSObject> { Class isa; } //... //以及包含一些列的方法
struct objc_class { struct objc_class * isa; struct objc_class * super_class; /*父类*/ const char *name; /*类名字*/ long version; /*版本信息*/ long info; /*类信息*/ long instance_size; /*实例大小*/ struct objc_ivar_list *ivars; /*实例参数链表*/ struct objc_method_list **methodLists; /*方法链表*/ struct objc_cache *cache; /*方法缓存*/ struct objc_protocol_list *protocols; /*协议链表*/ };
http://blog.csdn.net/kesalin/article/details/7211228
http://blog.csdn.net/kesalin/article/details/6689226