• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[iPhone] OS 3.0 and @synthesize AND @dynamic for the same property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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


  • Follow-Ups:
    • Re: [iPhone] OS 3.0 and @synthesize AND @dynamic for the same property
      • From: BJ Homer <email@hidden>
    • Re: [iPhone] OS 3.0 and @synthesize AND @dynamic for the same property
      • From: Roland King <email@hidden>
  • Prev by Date: Re: Drag-Move the Transparent windowed app over the screen
  • Next by Date: Using HTML form in cocoa app
  • Previous by thread: Re: Building a tree
  • Next by thread: Re: [iPhone] OS 3.0 and @synthesize AND @dynamic for the same property
  • Index(es):
    • Date
    • Thread