Dynamically getting the type of ivars
Dynamically getting the type of ivars
- Subject: Dynamically getting the type of ivars
- From: Dave DeLong <email@hidden>
- Date: Mon, 13 Apr 2009 11:10:04 -0600
Hey everyone,
Is there a way to get the class of an ivar that's an object? I know
that I can call ivar_getTypeEncoding() on the Ivar and get a c string
of the type encoding, and I've noticed that many of the Ivars that are
objects are of the form @"{class name}". Is that consistent? Can I
reliably pull out that stuff in between the quotes to get the class of
the Ivar? (This seems sketchy to me...) Is this the best way to do
this? If not, what do I need to do to get the Ivar's type?
Thanks,
Dave DeLong
_______________________________________________
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