iphone Programming Glossary: t@
In Objective-C Determine if a Property is an int, float, double, NSString, NSDate, NSNumber, etc http://stackoverflow.com/questions/3497625/in-objective-c-determine-if-a-property-is-an-int-float-double-nsstring-nsdat edit extracting the type From the code above you can extract the class name like so if typeAttribute hasPrefix @ T@ typeAttribute length 1 NSString typeClassName typeAttribute substringWithRange NSMakeRange 3 typeAttribute length 4 turns..
Objective-C 2.0: class_copyPropertyList(), how to list properties from categories http://stackoverflow.com/questions/848636/objective-c-2-0-class-copypropertylist-how-to-list-properties-from-categorie property But this lists only three properties userInteractionEnabled Tc GisUserInteractionEnabled layer T@ CALayer R V_layer tag Ti V_tag Looking at the header file for UIView.h those are the three properties directly declared..
Loop through all object properties at runtime http://stackoverflow.com/questions/9269372/loop-through-all-object-properties-at-runtime @ name attributesString free propertyArray Output Property age attributes T^q Vage Property lastName attributes T@ NSString N VlastName Property firstName attributes T@ NSString N VfirstName Note that this program needs to be compiled..
|