I created a cocoa application (non-document based) and had the default class MyAppDelegate and MainMenu nib file. I also created a new nib that contains a Splash window and a window controller class (NSWindowController) called SplashWindowController.
I would like that when starting the application, instead of opening the MainMenu nib window, I would like to open the Splash window.
I think I need to instantiate my SplashWindowController in my AppDelegate class, and then instantiate the window and set it to the foreground. However, I tried several things, such as including a link to the SplashWindowController.h file in my AppDelegate class, as well as adding an object to my MainMenu nib and setting its class to SplashWindowController. But they were also unlucky.
If anyone could help me with this, he would really appreciate what was in it (which seems like a simple task) for most of the day.
Thanks in advance.
source
share