@property setter for BOOL.
Posted
by George
on Stack Overflow
See other posts from Stack Overflow
or by George
Published on 2010-05-23T08:46:57Z
Indexed on
2010/05/23
8:50 UTC
Read the original article
Hit count: 230
Hi,
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.
© Stack Overflow or respective owner