I am designing automatically persistent objects, and for that I need (a) to locate members which are pointers, (b) to find their locations. The compiler has this information, and I expected that the reflection would provide it, but I cannot figure out how to do it. For example, if an object starts at address 505060
@interface MyClass : NSObject {
NSString *name; // class offset 4B, member address 505064
int code;
MyClass *next; // class offset 12B, member address 505072
}
@end