• 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: Unobserved Changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unobserved Changes


  • Subject: Re: Unobserved Changes
  • From: Mike Abdullah <email@hidden>
  • Date: Fri, 22 Feb 2008 10:21:33 +0000

Post some code. How is clicking the button adding to the array?

Mike.

On 22 Feb 2008, at 09:45, Jason Barker wrote:

Hi everyone,
I have a Container object that has a Characteristics object which, in turn,
has a NSMutableArray ("myarray") object. I also have a ContainerController
object that I want to set up to observe changes to the NSMutableArray
object. In the ContainerController, I have a line of code:


[container addObserver: self forKeyPath: @"characteristics.myarray" options:
0 context: NULL];


I have a NSArrayController object set up to manage changes by a user to the
NSMutableArray object through a table view. I also have a button that, when
clicked, adds a row to the table. Such a change to the array does not seem
to be sending a "changed" message to the observer (the ContainerController
object). I am pretty sure that I've followed the KVO criteria regarding this
array object. How should I set this up so that my ContainerController object
will be notified when an element is added to the array?



Thanks, Jason _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Unobserved Changes (From: "Jason Barker" <email@hidden>)

  • Prev by Date: Unobserved Changes
  • Next by Date: Private Methods
  • Previous by thread: Unobserved Changes
  • Next by thread: Re: Unobserved Changes
  • Index(es):
    • Date
    • Thread