Re: [iPhone] OS 3.0 and @synthesize AND @dynamic for the same property

2009-11-14 Thread Joerg Simon
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 e

Re: [iPhone] OS 3.0 and @synthesize AND @dynamic for the same property

2009-11-13 Thread BJ Homer
On Thu, Nov 12, 2009 at 2:52 AM, Joerg Simon 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]

Re: [iPhone] OS 3.0 and @synthesize AND @dynamic for the same property

2009-11-13 Thread Roland King
take the @dynamic out. Since you are synthesizing the property you don't need the @dynamic which suppresses the warning that you haven't defined the setter or the getter. You use the @dynamic statement to tell the compiler to suppress a warning if it can’t find an implementation of accessor m

[iPhone] OS 3.0 and @synthesize AND @dynamic for the same property

2009-11-13 Thread Joerg Simon
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 editin