Re: Startup window?
Re: Startup window?
- Subject: Re: Startup window?
- From: j o a r <email@hidden>
- Date: Fri, 7 Mar 2003 13:45:55 +0100
IMO you shouldn't display a spash screen for a second longer than it's
really needed. This could be done something like this:
- (void) startApp
{
[mySplashScreenWindow makeKeyAndOrderFront: nil];
// Perform all initialization
[mySplashScreenWindow orderOut: nil];
}
If you really think that you want to force all users to wait 10 seconds
looking at this window every time they launch your app, then you need
to use a timer. Something like this:
- (void) startApp
{
[mySplashScreenWindow makeKeyAndOrderFront: nil];
// Perform all initialization
[self performSelector: @selector(closeSplash) withObject: nil
afterDelay: 10.0];
}
- (void) closeSplash
{
[mySplashScreenWindow orderOut: nil];
}
j o a r
On Friday, Mar 7, 2003, at 12:52 Europe/Stockholm, Peter Karlsson wrote:
I want a startup window in my app, that tells that the application is
initializing, and after 10 sec (so everyone can look at the nice
picture) I want it to be closed and the main window pops up. The
startup window (complete with picture and initializing text) is
already made but how do I tell it to stay open for 10 sec before open
the main window? Is it ok to have some kind if timer that waits for 10
sec after - (void)awakeFromNib?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.