Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
- (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
You can’t perform that action at this time.