KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I get a list (in the form of an NSArray or NSDictionary ) of a given object properties 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 properties. Then I have several classes which extend this parent class, adding a lot of different properties 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 properties as NSStrings that are not on the parent class, so I can later use these NSString for KVC?
Tags (comma-separated)
Save Edits
Cancel