Possible Duplicate:
Objective C Introspection/Reflection
I am looking for the way to get the object's members type name in sequence declared in the object header.
such as, if I get an object like this
@interface Person : NSObject {
int age;
NSString *name;
PersonDetail *detail;
}
When I get the data like {28,@"Jack",{@"basketball",@"Male",@"Master Degree"}}
in array.
I would need the type of members to fill the data in.
It's like in java where there is a function like getField() to get the members in order.
So is there any methods I can use?
Thank.