Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Created July 2, 2015 16:50

Revisions

  1. mikeabdullah created this gist Jul 2, 2015.
    13 changes: 13 additions & 0 deletions gistfile1.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    - (void)viewDidLoad {
    [super viewDidLoad];

    for (NSViewController *aController in self.childViewControllers) {
    NSString *identifier = [aController identifier];
    if ([identifier isEqualToString:@"master"]) {
    self.masterViewController = aController;
    }
    else if ([identifier isEqualToString:@"detail"]) {
    self.detailViewController = aController;
    }
    }
    }