How do I observe changes in NSArray contents?
How do I observe changes in NSArray contents?
- Subject: How do I observe changes in NSArray contents?
- From: Terrence Talbot <email@hidden>
- Date: Tue, 11 Oct 2005 11:44:16 -0700
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