View Full Version : KVO with NSArrayController subclass

Jul 17, 2007, 08:04 AM
Hey everyone,

I'm trying to watch for when the user changes a field on an NSArrayController subclass. I want it so that when the user edits the information I am notified but so that when the user simply changes the selection of the ArrayController I am not called.

What is the best way of implementing this? Is addObserver:forKeyPath:... the way to go? I think this will be called every time the user changes the selection though?

Thanks for your help


Jul 18, 2007, 01:50 PM
I'd suggest searching the cocoa-dev mailing list archives (http://www.cocoabuilder.com/archive/bydate). This topic seems to have been covered quite a few times.