Got a small question, i’m busy creating an OSX application. In my first view (appdelegate) i got a login screen, but after the users logged in i want (flip the logincontroller (main.xib) to remove the login screen and open a new NSWindowcontroller.
What is the best way to do that? I tried;
Second = [[SecondController alloc] initWithWindowNibName:@"SecondController"];
[[Second window] makeFirstResponder:nil];
But now the second controller appears but the first controller stays. In iOS development i’m doing (want the same thing but than for OSX)
CategoriesViewController *tableController = [CategoriesViewController alloc];
tableController.managedObjectContext = [self managedObjectContext];
self.navigationController = [[UINavigationController alloc] initWithRootViewController:tableController];
Carmin is correct but you could do
[Yourwindow close:nil];