Lion's new "Resume" feature, document restoration, and splash screens
Lion's new "Resume" feature, document restoration, and splash screens
- Subject: Lion's new "Resume" feature, document restoration, and splash screens
- From: Sean McBride <email@hidden>
- Date: Wed, 27 Jul 2011 18:29:05 -0400
- Organization: Rogue Research Inc.
Hi all,
How can one support the new Resume feature and also show a splash screen at app launch, before documents are opened?
I've added logs to my NSApplicationDelegate and observed the launch sequence and it goes like:
awakeFromNib
applicationWillFinishLaunching
NSApplicationDidFinishRestoringWindowsNotification
applicationDidFinishLaunching
If I try to display a simple UI from applicationWillFinishLaunching, say by using [NSApp runModalForWindow:...], it starts a run loop, which processes an open apple event, which starts the whole Resume mechanism, which then restores documents.
Is there a point where I can show a simple window with an "I Agree" button, and until it's pressed, prevent any document from opening?
(And I know someone is going to tell me: don't show an icky splash screen... that option is being considered too.)
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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