• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
KVO / NSArrayController question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

KVO / NSArrayController question


  • Subject: KVO / NSArrayController question
  • From: Peter Schols <email@hidden>
  • Date: Tue, 4 Jan 2005 19:09:10 +0100

Hi,

I'm using bindings (NSArrayController) for my latest app and it's working great! Using bindings saves so much time!

I have one question, however: I would like to dirty my document whenever any value changes in the array managed by the NSArrayController. So I'm not only interested in changes to the array itself (insertion and removal of elements) but also in the modification of any value of any object in the array (modification of instance variables of the objects in the array). I have been searching the list archives and the documentation on this and I guess the addObserver:forKeyPath:options:context: method will do the trick. However, I'd be interested in every possible keyPath available so I was wondering if there is a simpler approach of observing all keyPaths at once for all objects in the array managed by NSArrayController.

Thanks in advance!

Peter


Peter Schols Laboratory of Plant Systematics - K.U.Leuven www.kuleuven.ac.be/bio/sys Kasteelpark Arenberg 31 3001 Leuven Belgium

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: KVO / NSArrayController question
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: Re: NSArray saveToFile: atomically does not work
  • Next by Date: NaN (Not a Number) Error using Bindings
  • Previous by thread: Implementing custom views and documents
  • Next by thread: Re: KVO / NSArrayController question
  • Index(es):
    • Date
    • Thread