objective c - Select the default window to be opened at startup -


i'm working on macos x (objective-c / cocoa) application works way : first window opened, requesting user's username / password. if credentials valid, main application displayed.

this open credential window :

@implementation betaseriesdesktopappdelegate  - (void)applicationdidfinishlaunching:(nsnotification *)anotification  {     authwindow = [[authenticatewindow alloc] init];     [authwindow makekeyandorderfront:nil];     [authwindow becomefirstresponder]; }  - (void)login:(id)sender {     nslog(@"login");     user *user = [[user alloc] init];  }  @end 

problem is, main window if opened @ application startup. how can prevent so? property must set in interface builder or have in applicationdidfinishlaunching method? else?

in interface builder, select window. in window attributes info pane, deselect option "visible @ launch".


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -