• 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: ViewControllers and window nibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ViewControllers and window nibs


  • Subject: Re: ViewControllers and window nibs
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 6 May 2009 21:01:35 +0100


On 6 May 2009, at 20:44, David Scheidt wrote:

I've got a Core Data app, using the NSPersistantDocument stuff. There are three basic entity types. There is one, which I'll call MainEntity, which has optional to-many relationships with the other two, which I'll call A and B. In my main window, I have a TableView, which has its columns bound to subclass of NSArrayController (I'm overriding setFilterPredicate, and have some convience methods). In the bottom part of the window, there is an area that shows details of the particular MainEntity that's selected in the table. there is another table column which shows either the AEntities or BEntities that the selected MainEntity has (using an ArrayController bound to MainEntityArrayController.selection. When I have everything in one nib, and use a TabView to control which of the A or B tables is shown, everything works just fine. For various reasons, I want to replace the bottom section of the window with a set of ViewControllers. I'm at a loss trying to figure out how properly get a reference to the MainEntityArrayController. I've put an instance of the ArrayController in my AView.xib, and set the viewControllers mainEntityArrayController outlet in windowControllerDidLoadNib. It gets the right value there, but the change in selection doesn't seem to propagate into the other view. what am I missing?


See the following for hints on binding across nibs.
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html

It might be the case that you are setting up your bindings in IB to a controller that is only specified after the nib is actually loaded.
If this is the case an alternative would be to specify the bindings manual in -windowControllerDidLoadNib.
_______________________________________________

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

Jonathan Mitchell

Central Conscious Unit
http://www.mugginsoft.com




_______________________________________________

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: ViewControllers and window nibs
      • From: Derek Chesterfield <email@hidden>
References: 
 >ViewControllers and window nibs (From: David Scheidt <email@hidden>)

  • Prev by Date: ViewControllers and window nibs
  • Next by Date: Re: Vector Graphic Dock Icon?
  • Previous by thread: ViewControllers and window nibs
  • Next by thread: Re: ViewControllers and window nibs
  • Index(es):
    • Date
    • Thread