Re: Unobserved Changes

2008-02-23 Thread mmalc crawford
On Feb 23, 2008, at 10:21 AM, Keary Suska wrote: Chris is correct, and I should have known better. I have never observed arrangedObjects, but I got the example from mmalc's bindings page: . Why he chose the sp

Re: Unobserved Changes

2008-02-23 Thread Keary Suska
on 2/22/08 9:59 PM, [EMAIL PROTECTED] purportedly said: > Thanks for your help. > I created a stripped down project of the scenario. It can be downloaded > from: > http://www.neuromight.com/cocoa/ContainerTest.zip > > A couple of points of interest: > - The observations are created in the awa

Re: Unobserved Changes

2008-02-22 Thread Jason Barker
Thanks for your help. I created a stripped down project of the scenario. It can be downloaded from: http://www.neuromight.com/cocoa/ContainerTest.zip A couple of points of interest: - The observations are created in the awakeFromNib message in the ContainerController class. - I have revert

Re: Unobserved Changes

2008-02-22 Thread Chris Hanson
On Feb 22, 2008, at 10:24 AM, Keary Suska wrote: on 2/22/08 2:45 AM, [EMAIL PROTECTED] purportedly said: [container addObserver: self forKeyPath: @"characteristics.myarray" options: 0 context: NULL]; AFAIK, you can't observe changes to the *contents* of an array using the above; you can

Re: Unobserved Changes

2008-02-22 Thread Jason Barker
Keary, You guessed it. I changed the observer to the arrangedObjects property of the array controller and now I'm getting notified of changes. Thanks! Jason On Fri, Feb 22, 2008 at 11:24 AM, Keary Suska <[EMAIL PROTECTED]> wrote: > on 2/22/08 2:45 AM, [EMAIL PROTECTED] purportedly said: > > > [

Re: Unobserved Changes

2008-02-22 Thread Keary Suska
on 2/22/08 2:45 AM, [EMAIL PROTECTED] purportedly said: > [container addObserver: self forKeyPath: @"characteristics.myarray" options: > 0 context: NULL]; AFAIK, you can't observe changes to the *contents* of an array using the above; you can only observe when the array object itself is replaced.

Re: Unobserved Changes

2008-02-22 Thread Mike Abdullah
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 th