• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Splash screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Splash screen
      • From: Marcel Bresink <email@hidden>
    • Re: Splash screen
      • From: Raphael Sebbe <email@hidden>
  • Prev by Date: Learning Cocoa <first Post?>
  • Next by Date: Re: Splash screen
  • Previous by thread: Re:Learning Cocoa <first Post?>
  • Next by thread: Re: Splash screen
  • Index(es):
    • Date
    • Thread