• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core data, bindings and multiple view NIB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core data, bindings and multiple view NIB


  • Subject: Re: Core data, bindings and multiple view NIB
  • From: Keary Suska <email@hidden>
  • Date: Thu, 28 May 2009 08:23:35 -0600

On May 27, 2009, at 10:07 PM, Tomaž Kragelj wrote:

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?

It is possible, and is within the domain of issues that bindings help solve, but I don't see how it would change having multiple repeated bindings. In fact, it adds a useless layer onto the problem.


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


  • Follow-Ups:
    • Re: Core data, bindings and multiple view NIB
      • From: Tomaž Kragelj <email@hidden>
References: 
 >Re: Core data, bindings and multiple view NIB (From: Tomaž Kragelj <email@hidden>)
 >Re: Core data, bindings and multiple view NIB (From: Keary Suska <email@hidden>)
 >Re: Core data, bindings and multiple view NIB (From: Tomaž Kragelj <email@hidden>)

  • Prev by Date: Re: Traversing an NSXML subtree
  • Next by Date: Re: Traversing an NSXML subtree
  • Previous by thread: Re: Core data, bindings and multiple view NIB
  • Next by thread: Re: Core data, bindings and multiple view NIB
  • Index(es):
    • Date
    • Thread