KVO with NSArrayController subclass

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

  1. macrumors regular

    Joined:
    Jul 5, 2005
    Location:
    London, UK
    #1
    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
     
  2. Moderator emeritus

    kainjow

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

Share This Page