Thanks BJ and Roland!,

I always had a crash when I took the @dynamic out, but now I figured out, that was another bug how just randomly appeared also when I changed this code :D. With your advice I tried to take it out again, and it works. That's actually why I posted the problem, because every documentation I found in the internet more or less stated to me that this code doesn't make sence. Even more you are confused when you find it in a running, working, selling productive code @_...@.

Cheers, Joerg

Am 14.11.2009 um 08:06 schrieb BJ Homer:

On Thu, Nov 12, 2009 at 2:52 AM, Joerg Simon <j_si...@mac.com> wrote:
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;

The @dynamic is entirely unnecessary; you should use @synthesize or @dynamic, but not both.

-BJ

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to