[iPhone] OS 3.0 and @synthesize AND @dynamic for the same property
[iPhone] OS 3.0 and @synthesize AND @dynamic for the same property
- Subject: [iPhone] OS 3.0 and @synthesize AND @dynamic for the same property
- From: Joerg Simon <email@hidden>
- Date: Thu, 12 Nov 2009 10:52:22 +0100
Dear all other Cocoa Developers:
In an app I am developing I have the following strange thing:
[code in the .h file]
@interface XY : CALayer
BOOL _editing;
...
@property (assign, getter = isEditing) BOOL editing;
[/code]
[code in the .m file]
@synthesize editing = _editing;
@dynamic editing;
....
[/code]
I get: error: property 'editing' is already implemented
So, this code now compiles:
Fine for all versions of OSes under leopart
Only for versions 2.x under snow leopard.
Since my laptop runs snow leopard, and I am very often developing on
my laptop, and snow leopard lacks a OS 2.x iPhone simulator, that
means I can't use the simulator on the iPhone, and it secondly means
that the app has problems to compile with the new compiler, and that
would be bad if apple switches internally.
Any suggestions what to do?
Thanks,
Joerg Simon
_______________________________________________
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