Not sure if this is correct, but I got this job because it is new to me too.
in the AppDelegate file I have
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // Insert code here to initialize your application QuickBookingViewController * viewController = [[QuickBookingViewController alloc ] initWithNibName:@"QuickBookingViewController" bundle:nil]; SimpleWindow *myWindow = [[SimpleWindow alloc] initWithWindowNibName:@"SimpleWindow"]; [self.window addChildWindow:[myWindow window] ordered:NSWindowBelow]; }
which seems to open my view controller
I recently got this code from SO
SimpleWindow *myWindow = [[SimpleWindow alloc] initWithWindowNibName:@"SimpleWindow"]; [myWindow showWindow:nil]; [[myWindow window] makeMainWindow];
source share