gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting Class of an Ivar


From: Doug Warren
Subject: Re: getting Class of an Ivar
Date: Thu, 4 Jul 2013 06:45:15 -0700

Thanks David,

That makes total sense.  Can you point me towards the part of the code where this is initialized?  When I spoke with a co-worker about it we actually thought it may have been part of the code clang emits.  We're planning to have a local modification to fit with our existing code base which requires OSX 10.7 or above.

Thanks again!
-Doug



On Wed, Jul 3, 2013 at 7:39 AM, David Chisnall <address@hidden> wrote:
This is something that won't work on most versions of OS X either.  The new type encoding format was introduced very recently and we haven't adopted it yet because it breaks anything that parses Objective-C type encodings.

David

On 3 Jul 2013, at 15:30, Doug Warren <address@hidden> wrote:

> There's some code I need to port that was written for the Apple Objective-C runtime which basically calls  ivar_getTypeEncoding checks that it matchs the format @"foo" and if so calls objc_getClass("foo").  With the GnuStep runtime that is only returning @.  Is there any way to get the class of the ivar or how is the encoding determined if we wanted to modify our copy to match Apple's implementation?
>
>
> _______________________________________________
> Gnustep-dev mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/gnustep-dev


-- Sent from my IBM 1620



reply via email to

[Prev in Thread] Current Thread [Next in Thread]