Say I have my class
@interface Person : NSObject { NSString *name; }
I need to get the name of NSString\'s within my class
As easy as
#define VariableName(arg) (@""#arg)
Then you do:
NSObject *obj; NSString *str = VariableName(obj); NSLog(@"STR %@", str);//obj