Re: Just when I thought I understood bindings.

2008-10-09 Thread Tim Isted
Sorry, my bad for writing confusion and rubbish at 1:40am. I meant to talk about discussion as here: http://www.cocoabuilder.com/archive/message/cocoa/2005/5/27/137132 but see also the next messages Tim On 9 Oct 2008, at 06:36, Scott Anguish wrote: On 8-Oct-08, at 8:46 PM, Tim Isted wrote:

Re: Just when I thought I understood bindings.

2008-10-09 Thread Negm-Awad Amin
Am Do,09.10.2008 um 02:46 schrieb Tim Isted: Did you setup the bindings using Interface Builder or programatically? If programatically, they work in only one direction so you need to call [object1 bind:@"value" toObject:object2 withKeyPath:@"whateverPathForKeyIs" options:nil]; and [obj

Re: Just when I thought I understood bindings.

2008-10-08 Thread Scott Anguish
On 8-Oct-08, at 8:46 PM, Tim Isted wrote: Did you setup the bindings using Interface Builder or programatically? If programatically, they work in only one direction so you need to call [object1 bind:@"value" toObject:object2 withKeyPath:@"whateverPathForKeyIs" options:nil]; and [object

Re: Just when I thought I understood bindings.

2008-10-08 Thread Fritz Anderson
On 8 Oct 2008, at 7:21 PM, Chris Idou wrote: I've got an NSObjectController controlling an object. This content object's properties are bound to various fields on my screen. It seems that the bindings are only working in one direction. Editing the fields updates the object, but programmatic

Re: Just when I thought I understood bindings.

2008-10-08 Thread Chris Idou
From: Tim Isted <[EMAIL PROTECTED]> > Subject: Re: Just when I thought I understood bindings. > To: cocoa-dev@lists.apple.com > Date: Wednesday, October 8, 2008, 5:46 PM > Did you setup the bindings using Interface Builder or > programatically? > If programatically, they

Re: Just when I thought I understood bindings.

2008-10-08 Thread Tim Isted
Did you setup the bindings using Interface Builder or programatically? If programatically, they work in only one direction so you need to call [object1 bind:@"value" toObject:object2 withKeyPath:@"whateverPathForKeyIs" options:nil]; and [object2 bind:@"value" toObject:object1 withKeyPath:

Re: Just when I thought I understood bindings.

2008-10-08 Thread Chris Idou
I set them up in interface builder. --- On Wed, 10/8/08, Tim Isted <[EMAIL PROTECTED]> wrote: > From: Tim Isted <[EMAIL PROTECTED]> > Subject: Re: Just when I thought I understood bindings. > To: [EMAIL PROTECTED] > Date: Wednesday, October 8, 2008, 5:36 PM > Did y

Re: Just when I thought I understood bindings.

2008-10-08 Thread Chris Idou
Since I've added my own observers to the properties, and they are getting called correctly after I set the values, I guess I must be right? --- On Wed, 10/8/08, Rob Keniger <[EMAIL PROTECTED]> wrote: > From: Rob Keniger <[EMAIL PROTECTED]> > Subject: Re: Just when

Re: Just when I thought I understood bindings.

2008-10-08 Thread Rob Keniger
On 09/10/2008, at 10:21 AM, Chris Idou wrote: It seems that the bindings are only working in one direction. Editing the fields updates the object, but programmatically updating the object doesn't update the gui. I've added observers to my fields, and they are definitely notifying of chan