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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to