Re: How do I observe changes in NSArray contents?
Re: How do I observe changes in NSArray contents?
- Subject: Re: How do I observe changes in NSArray contents?
- From: Duncan Wilcox <email@hidden>
- Date: Tue, 11 Oct 2005 22:50:09 +0200
You watch for array change and element change separately, mmalc's
graphics bindings sample does this, check it out:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
Duncan
On Oct 11, 2005, at 8:44 PM, Terrence Talbot wrote:
Although I originally posted this question, with a longer
explanation, under the title "CoreData - KVO on unarchived array/
dictionary elements?", I realized that this doesn't need to be a
CoreData question and can actually be stated pretty simply:
How can I get notified when an object inside an NSMutableArray --
an array element itself, or an object within a particular array
element -- is modified?
Is that possible? I see the method -
addObserver:toObjectsAtIndexes:forKeyPath:options:context: on
NSArray, but I don't understand what is to be supplied for keyPath.
Thanks for shedding light on this,
Terrence
--
Terrence Talbot
Karelia Software
_______________________________________________
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
_______________________________________________
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