Get property class giving the property name
问题 What I need I have a bunch of classes generated from my data model that inherit from NSManagedObject. I need a way to get, for any of theses classes, a dictionary of a string of a property name as the key, and the string of it's type as the value, for every property name passed in an array. Or better, in code: // what I have - generated code @interface ClassA : NSManagedObject @property (nonatomic, retain) ClassX *propX; @property (nonatomic, retain) ClassY *propY; @end @implementation ClassA