Monthly Archives: July 2008

Key Value Observing Improvements

Key value observing is quite a useful tool, no doubt about it. But it has a singularly annoying manner of informing the observer of a change. The -[NSObject observeValueForKeyPath:ofObject:change:context:] method is sent to the observer when a change occurs. It’s up to the implementor to parse the `change’ dictionary to figure out what changed. When I use observers, I usually want a method called on my class when a change occurs, similar to target/action with UI elements. So my -[NSObject … Continue reading

Posted in Software | 4 Comments