Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Referencing view controllers from a storyboard
- (void)windowDidLoad {
NSSplitViewController *splitViewController = (NSSplitViewController *)self.rootViewController;
self.masterViewController = (MyMasterViewController *)splitViewController.childViewControllers[0];
self.detailViewController = (MyDetailViewController *)splitViewController.detailViewControllers[1];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment