typedef show up as existing type while introspecting, want to show defined data type
typedef show up as existing type while introspecting, want to show defined data type
- Subject: typedef show up as existing type while introspecting, want to show defined data type
- From: Devraj Mukherjee <email@hidden>
- Date: Sun, 04 Sep 2011 17:23:18 +1000
Hi all,
I have been using Obj-C runtime to introspect my objects. I am using
property_getAttributes to inspect the type / Class name etc for my
properties.
I want to be able to uniquely identify some of my properties which are
essentially NSStrings and NSArray instances.
I used typedef to define an alias of NSString and NSArray and defined
the properties using the new types, but when I use
property_getAttributes the property string has the original data type
i.e NSString or NSArray.
Is there a way that I can ask property_getAttribute to return the
defined names not the parent names?
Subclassing is my only other option to solve my problem but I want to
refrain from doing that for core Obj-C types.
Thanks for your time.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden