0

I don't like that KVO routes all changes to the same observeValueForKeyPath:ofObject:change:context: method. At the moment I have a large tree of if statements sending these "observations" to different methods.

Is there already a way to specify a different selector for each addObserver: call?

Otherwise, I was thinking of creating a class "Observation", each instance of which would be initialised with a selector and then act as the KVO observer.

v_y
  • 225
  • 2
  • 9
  • 3
    [mike ash](http://www.mikeash.com/pyblog/key-value-observing-done-right.html) has a good article on this, worth checking out – wattson12 Sep 20 '12 at 10:35
  • this is possibly exactly what i was looking for (haven't actually tried it yet though). thanks! – v_y Sep 20 '12 at 10:43

0 Answers0