Showing posts with label key-value-observing. Show all posts
Showing posts with label key-value-observing. Show all posts

Friday, June 1, 2012

Objective-C: What"s the Difference between objectForKey and valueForKey?


What is the difference between objectForKey and valueForKey? I looked both up in the documentation and they seemed the same to me.

Thursday, March 1, 2012

Key-Value-Observation — Looking for a more elegant solution to respond to value changes


I've run into a frustrating feature of KVO: all notifications are funneled through a single method ( observeValueForKeyPath:.... ), requiring a bunch of IF statements if the object is observing numerous properties.