Re: Lion's new "Resume" feature, document restoration, and splash screens
Re: Lion's new "Resume" feature, document restoration, and splash screens
- Subject: Re: Lion's new "Resume" feature, document restoration, and splash screens
- From: Dave Fernandes <email@hidden>
- Date: Wed, 27 Jul 2011 19:39:39 -0400
License agreements are still a necessity. This seems to be what the OP is asking about, and not simply a marketing splash screen.
I used to put this check in my document controller's openUntitledDocumentAndDisplay:error: and openDocumentWithContentsOfURL:display:error: methods. Unfortunately, these methods are not called for restored windows.
On 2011-07-27, at 7:16 PM, John Joyce wrote:
>
> On Jul 28, 2011, at 7:29 AM, Sean McBride wrote:
>
>> 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
>
> Please don't show splash screens.
> Launch your app.
> Use lazy loading.
> Users don't want brand marketing every time they use an app. They want to get back to work._______________________________________________
>
> 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
_______________________________________________
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