Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Created June 2, 2015 14:11
Show Gist options
  • Save mikeabdullah/365a450389bf88ade24c to your computer and use it in GitHub Desktop.
Save mikeabdullah/365a450389bf88ade24c to your computer and use it in GitHub Desktop.
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