Re: Dynamically getting the type of ivars
Re: Dynamically getting the type of ivars
- Subject: Re: Dynamically getting the type of ivars
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 13 Apr 2009 12:12:02 -0600
On Apr 13, 2009, at 11:10 AM, Dave DeLong wrote:
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?
No.
If not, what do I need to do to get the Ivar's type?
Just use the -class and +class methods. If you need to check to see
whether an object is, or is a subclass of, a certain class, then use -
isMemberOfClass: and -isKindOfClass: respectively.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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