Skip to content

Instantly share code, notes, and snippets.

@craigmarvelley
Created May 16, 2016 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigmarvelley/4d74680111527ed0826ac65a1b3b6c12 to your computer and use it in GitHub Desktop.
Save craigmarvelley/4d74680111527ed0826ac65a1b3b6c12 to your computer and use it in GitHub Desktop.
- (void)showNoteSplitViewWithDataController:(DataController *)dataController searchController:(SearchController *)searchController {
NSParameterAssert(dataController);
NSParameterAssert(searchController);
NSString *authenticatedUserId = self.applicationSessionCredentialStore.userId;
NoteSplitViewAssembly *assembly = [self.assembly noteSplitViewAssemblyWithApplicationSession:self.applicationSession dataController:dataController searchController:searchController authenticatedUserId:authenticatedUserId];
[assembly activate];
NoteSplitViewCoordinator *coordinator = [assembly noteSplitViewCoordinatorWithWindow:self.window fetchCompletionHandler:self.fetchCompletionHandler];
coordinator.delegate = self;
[self.childCoordinators addObject:coordinator];
[coordinator start];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment