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

Re: Bindings across view controllers in OS X storyboards


  • Subject: Re: Bindings across view controllers in OS X storyboards
  • From: Rick Mann <email@hidden>
  • Date: Fri, 01 May 2015 12:01:13 -0700

> On May 1, 2015, at 08:58 , Fritz Anderson <email@hidden> wrote:
>
> I almost devoted half-a-chapter to how disastrous and inexplicable this is, until I figured out the rules. Part of the rant made it through to the page proofs (print minus one).
>
> Storyboards are not monoliths at runtime, they’re an archive of NIBs, one for each view controller. Cross-controller relationships are missing only in the sense that they are impossible. That includes parent-child relationships from window controllers across split-view controllers.
>
> A window controller has a reference to its content controller. Descend that into the split-view controller and index the splits, then recover the content controller for each. In the process, you can propagate the child controllers up to the window controller (or whatever).

I'm not sure I agree that it's impossible. They just need to build the support for it. A connection in IB is just a fancy way of setting a property in one XIB to a string value.

I can envision dragging from a property in one view controller to another view controller (or property within another view controller). If those two view controllers share a common ancestor in the view controller containment hierarchy, THAT VC would have properties set indicating which controllers it should auto-wire.

Honestly it doesn't even seem that difficult to implement for the engineers familiar with the Storyboard and NIB loading subsystem.

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


References: 
 >Re: Bindings across view controllers in OS X storyboards (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Creating new/untitled NSPersistentDocuments from template documents?
  • Next by Date: Re: Creating new/untitled NSPersistentDocuments from template documents?
  • Previous by thread: Re: Bindings across view controllers in OS X storyboards
  • Next by thread: Creating new/untitled NSPersistentDocuments from template documents?
  • Index(es):
    • Date
    • Thread