Re: Getting a splash screen to show
Re: Getting a splash screen to show
- Subject: Re: Getting a splash screen to show
- From: Keith Knauber <email@hidden>
- Date: Mon, 29 Jul 2013 23:08:26 +0000
- Thread-topic: Getting a splash screen to show
>
> On May 15, 2013, at 11:29 AM, Steve Mills wrote:
>
> I added more nextEventMatchingMask's and the 4th one would actually cause the document to be restored, which was way too early in the init method to do that. But I found this, which seems to work much more reliably. It takes care of doing event type stuff and displays the window.
>
> NSModalSession session = [[NSApplication sharedApplication] beginModalSessionForWindow:splashWindow];
>
> [[NSApplication sharedApplication] endModalSession:session];
>
> Continue doing regular init code, leaving the window onscreen…
From what I can gather, it seems like Mountain Lion tries to suppress all floating windows until it knows for sure that no modal dialogs
will be presented at startup (for example, reopenDocument could fail and present a dialog)
Does anyone else have a recommended solution for this problem?
I can't have my splash screen get stuck on, and obscure anything in case a modal dialog decides to present itself.
~Keith
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden