OS X Storyboard & Cross-Scene iBOutlet?
OS X Storyboard & Cross-Scene iBOutlet?
- Subject: OS X Storyboard & Cross-Scene iBOutlet?
- From: Karl Moskowski <email@hidden>
- Date: Fri, 27 Mar 2015 09:51:48 -0400
I’ve been prototyping aspects of a new app project. It’s going to be Yosemite-only, so I figured I’d give it a go with all the new stuff: Swift, storyboards, new APIs.
As expected, it’s not possible to connect an IBOutlet in one object to an object in another scene in a storyboard. I've read, however, that IB will let you do so when there’s a containment relationship—e.g., from a UISplitViewController to an object in one of its subviews. Xcode "knows about” these special cases of containment. However, I have a NSTabViewController subclass as the owner for a scene that contains two tab views, and Xcode won’t let me connect a property in the NSTabViewController object to a UI element in one of its tab views because they’re in different scenes.
Is this a bug? Because of the containment, should Xcode allow it?
----
Karl Moskowski <email@hidden>
<http://about.me/kolpanic>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden