Splash screen
Splash screen
- Subject: Splash screen
- From: email@hidden
- Date: Wed, 2 May 2001 20:00:24 -0700
Testing. Testing. Is this thing on. One two three four.
Ahem. Hello everyone. Here is my problem.
I'm trying to display a splash screen from my app. Here's what I did:
- In the applicationWillFinishLaunching: method of my NSApplication's
delegate I send a runModalForWindow: message to my app.
The (unsatisfactory) result:
- My splash window does come up, but it is not key. The user can make it
key by clicking on it. The only way I could find to make it key is to
have a runModalSession loop instead of runModalForWindow and send the
makeKeyAndOrderFront: message to my window inside the loop. That seems a
bit brute force and the documentation says I'm not supposed to call
makeKeyAndOrderFront: on the window.
How can I ensure that my window is key?
- After dismissing the splash screen, the document window behind never
becomes key. Switching app, clicking on the window, etc has no effect.
Very unfortunate.
- An untitled document still gets created in the back of my splash
screen (or a document gets opened if a user launched the app by
double-clicking on one).
How can I delay this till after the user has dismissed the splash screen?
- I couldn't find a way to create a window that looks like a splash
screen (i.e. no title bar). What's the trick?
- The Size panel of the inspector in IB shows that my window is springy
on all four sides, yet it is not centered on the screen.
How can I make sure that it is centered?
Any help with this greatly appreciated.
Arno.