iOS allows ivars in class extension but Mac OS doesn't?!
iOS allows ivars in class extension but Mac OS doesn't?!
- Subject: iOS allows ivars in class extension but Mac OS doesn't?!
- From: Jens Alfke <email@hidden>
- Date: Mon, 06 Feb 2012 16:25:31 -0800
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