KVO / NSArrayController question
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