I create a cocoa application on OSX 10.8. I create a windows derived from NSWindowController
and also create a .xib
file for this window, I want to show this window when application start, so I add the following in the applicationDidFinishLaunching
function
wndAgreement = [[AgreementWindow alloc] initWithWindowNibName:@"AgreementWindow"];
[wndAgreement showWindow:self];
But I still see the application's main window showing. Basically, the main window is behind my window. How to make the main window not show at all and only showing my window? The reason I am doing this is because I am building a wizard application, so click next on one window will open another window and close the current window.