I have a simple setter like
- (void) setValue: (int) newVal
{
value = newVal;
}
where valueis the instance variable int value;.
How is it possible that use [myobj setValue: 10];still generates a notification for observers, although my setter does not explicitly notice (i.e., it does not call willChangeValueForKeyand didChangeValueForKey).
Not sure if this is relevant or not, but I'm using the regular old Mac OS X. Is it any different than iOS?
source
share