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 protected]
>> 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 protected])
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/dave.fernandes%40utoronto.ca
> 
> This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to