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
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]
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
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