How can I get a list (in the form of an NSArray or NSDictionary) of a given object attributes in Objective-C?
Imagine the following scenario: I have defined a parent class which just extends NSObject, that holds an NSString, a BOOL and an NSData object as attributes. Then I have several classes which extend this parent class, adding a lot of different attributes each.
Is there any way I could implement an instance method on the parent class that goes through the whole object and returns, say, an NSArray of each of the (child) class attributes as NSStrings that are not on the parent class, so I can later use these NSString for KVC?