I’m having problems setting a BOOL using @property and @synthesize.
I’m using @property BOOL isPaused; And I can get it by using [myObject isPaused]; but I cannot manage to set it. I’d like to use [myObject setPaused: NO];. I also tried @property (setter=setPaused) BOOL isPaused; but if I’m not mistaking, then I need to write that setter myself.
I’m having problems setting a BOOL using @property and @synthesize . I’m using @property
Share
Why not use the dot notation?
If your property is declared as
@property BOOL isPaused, then the setter is always called asTo rename the setter you must provide the full signature including the colons:
BTW, the naming convention is not to include verbs in a property.