Re: iOS allows ivars in class extension but Mac OS doesn't?!
Re: iOS allows ivars in class extension but Mac OS doesn't?!
- Subject: Re: iOS allows ivars in class extension but Mac OS doesn't?!
- From: Alexander von Below <email@hidden>
- Date: Tue, 07 Feb 2012 13:40:32 +0100
I can only guess here:
iOS had the "new runtime" from the very beginning, whereas it came to Mac OS X with 64 Bit.
My hunch would be, that the syntax checking for OS X checks if the could would be valid for the old runtime, even when compiling 64 Bit only
I'd report that as a bug
Alex
Am 07.02.2012 um 01:25 schrieb Jens Alfke:
> Why is it that the following code compiles for iOS but not Mac OS X (32 or 64-bit)? Both targets are in the same project and both use the Clang compiler, in Xcode 4.2.1.
>
> @interface SomeClass()
> {
> Cookies *_cookies;
> }
> @end
>
> In a Mac (but not iOS) target this fails with "error: ivars may not be placed in class extension”.
>
> —Jens
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden