• 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
Bindings across view controllers in OS X storyboards
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings across view controllers in OS X storyboards


  • Subject: Bindings across view controllers in OS X storyboards
  • From: Rick Mann <email@hidden>
  • Date: Tue, 28 Apr 2015 16:54:55 -0700

I have a window made up of a couple of NSSplitViewControllers and custom view controllers. It's mostly a master-detail type of thing, where the selected item in the first split sets up the second, and a selected item there sets up the third.

Thing is, I don't see a good way to bind from one view controller to the other. I could subclass NSSplitViewController, override -prepareForSegue:, and inject references to the NSArrayControllers that way, but that means subclassing NSSplitViewController, which seems rather lame.

IMO, IB has never adequately address connecting across view controllers, and it's so frequently required, I'm surprised.

Or, am I missing some glaringly obvious way of doing this? The WWDC 2014 s212 talk on this glossed over this problem.

--
Rick Mann
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


  • Prev by Date: Re: New information. Was: Re: Weird UITableView problem
  • Next by Date: Re: Cocoa window stops responding
  • Previous by thread: Fwd: XPC service crash
  • Next by thread: Where and how do I know a save completed successfully?
  • Index(es):
    • Date
    • Thread