• 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
Re: How do I observe changes in NSArray contents?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >How do I observe changes in NSArray contents? (From: Terrence Talbot <email@hidden>)

  • Prev by Date: Re: Cocoa development positions at Pixar
  • Next by Date: NSPanel without window border decoration
  • Previous by thread: How do I observe changes in NSArray contents?
  • Next by thread: Cocoa development positions at Pixar
  • Index(es):
    • Date
    • Thread