Re: Dynamically getting the type of ivars
Re: Dynamically getting the type of ivars
- Subject: Re: Dynamically getting the type of ivars
- From: Kyle Sluder <email@hidden>
- Date: Mon, 13 Apr 2009 17:32:51 -0400
On Mon, Apr 13, 2009 at 5:29 PM, Dave DeLong <email@hidden> wrote:
> Thanks for the definitive answer. My observations indicate that every
> statically typed object has a type encoding of @"ClassName", so I'm going
> ahead with my original plan to pull the class out of that (I still don't
> like it, but I need that class).
There is no such thing as a "statically typed object." All of the
type information that the compiler has simply disappears after
compilation is done. The only type information available at runtime
is an object's isa pointer.
--Kyle Sluder
_______________________________________________
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