Re: Core data, bindings and multiple view NIB
Re: Core data, bindings and multiple view NIB
- Subject: Re: Core data, bindings and multiple view NIB
- From: Tomaž Kragelj <email@hidden>
- Date: Thu, 28 May 2009 06:07:22 +0200
Thanks Keary, this works, however it requires that the same binding is
repeated in each nib where the same list should be handled (some views
may only need to show it while others can also modify it). I was
thinking of creating a "master" set of controllers in the main nib,
then bind the "slave" controllers in particular view nib file to the
values from the corresponding master controller. Is that possible, or
is it not how bindings should be used?
Tom
On 27.5.2009, at 22:43, Keary Suska wrote:
On May 27, 2009, at 12:30 AM, Tomaž Kragelj wrote:
GroupItemsController:
- managed object context -> Application.delegate.managedObjectContext
- ???
The question marks are what I'm missing - if I don't bind to
anything, then the array controller will simply show all items for
all groups, however I want to bind this to the GroupItemsController
from the MainMenu.nib (it is accessible through the
Application.delegate, but I don't know how to bind it in order to
show only the items selected by the group in GroupsView.nib...
Have you tried Application.delegate.GroupController.selection.items
(the last key os whatever relationship you need to use)?
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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
_______________________________________________
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