Re: Another bindings conundrum (editing a to-many relationship through an NSArrayController)
Re: Another bindings conundrum (editing a to-many relationship through an NSArrayController)
- Subject: Re: Another bindings conundrum (editing a to-many relationship through an NSArrayController)
- From: Quincey Morris <email@hidden>
- Date: Thu, 17 Mar 2011 22:38:37 -0700
On Mar 17, 2011, at 22:25, Luke Evans wrote:
> In my original code, my picker window was initialised with its own
> NSArrayController driving the 'selected items' list (a single column
> NSTableView) in the following way:
>
> [selectedItems bind:@"contentSet" toObject:multiPickerCell withKeyPath:
> @"representedObject" options:nil];
> 2. Now [...] I can do the following binding instead of the
> foregoing example:
>
> [selectedItems bind:@"contentSet" toObject:[multiPickerCell
> parentItemsController] withKeyPath:@"selection.territories" options:nil];
>
> That's the only difference and *this* works.
Well, I think that's basically solution (a) in my previous response. :)
_______________________________________________
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