KVO with NSArrayController subclass

Discussion in 'Mac Programming' started by cblackburn, Jul 17, 2007.

  1. cblackburn macrumors regular

    Jul 5, 2005
    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

  2. kainjow Moderator emeritus


    Jun 15, 2000
    I'd suggest searching the cocoa-dev mailing list archives. This topic seems to have been covered quite a few times.

Share This Page