Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cblackburn

macrumors regular
Original poster
Jul 5, 2005
158
0
London, UK
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

Chris
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
I'd suggest searching the cocoa-dev mailing list archives. This topic seems to have been covered quite a few times.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.