@property(nonatomic, getter=isOn) BOOL on
It means that property is called on
, but getter is isOn
. So whatever you call, in your code methods isOn
will be called
I suggest that getter is named isOn, because it is good style of code convention to start boolean properties with is...
As for me to start all boolean properties with is
is very useful, because when you use your class, you can write the name of the instance variable of your class , than write is
and XCode will show you all the boolean properties..