Re: NSMutableArrayForKeyPath
Re: NSMutableArrayForKeyPath
- Subject: Re: NSMutableArrayForKeyPath
- From: Allan Odgaard <email@hidden>
- Date: Fri, 19 Mar 2004 06:41:32 +0100
On 19. Mar 2004, at 6:24, Alan Donsky wrote:
calling super binds the view to the controller so that changes in the
model are reflected with changes in the view.
I am a little confused. You mention that the problem is that the
*model* gets the entire array, but so far you have only told about
bindings between the controller and view (not the model).
Also, you bind to arrangedObjects.name -- this *is* an array. So if the
binding to the model is for the same key path, that would explain why
you get an array.
But what is it you want? If you are after the name of the *selected*
item, you should use selection.name between model and controller (but
still arrangedObjects.name between controller and table column (which I
assume is the superclass?!?).
I am using (void)textDidChange: so that i can change the model when
the user changes the view.
Are you not able to get that behavior without resorting to subclassing?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.