NSScreencast Episode #16 Key Value Observing
Key Value Observing - NSScreencast
- KVO - key value observing
- backgroundColor -> labelColor
- viewDidLoad
- [self.view addObserver:self forKeyPath options
- observeValueForKeyPath
- if keyPath isEqualToString
- viewDidUnload
- removeObserver
- viewDidLoad
- static char * kBackgoundColorObservationContext
- static void *... = &kBackground...
- custom setters (setName)
- willChangeValueForKey
- didChangeValueForKey