Re: Defer opening documents until app is fully inited
Re: Defer opening documents until app is fully inited
- Subject: Re: Defer opening documents until app is fully inited
- From: edward taffel <email@hidden>
- Date: Fri, 19 Sep 2014 12:49:38 -0400
just out of curiosity—have you attempted this earlier, e.g. in NSApplication init?
regards,
edward
On Sep 19, 2014, at 12:12 PM, Mills, Steve <email@hidden> wrote:
> Our app init (called from applicationWillFinishLaunching) needs to put up some modal dialogs. When one of these modals is dismissed, NSApplication proceeds to call application:openFiles:, but we haven't returned from applicationWillFinishLaunching yet, so we're not ready. I'm sure others have needed to work around this. What's the best way? Simply cache the list of files send to application:openFiles: and then open them later in applicationDidFinishLaunching?
>
> --
> Steve Mills
> office: 952-818-3871
> home: 952-401-6255
>
>
> _______________________________________________
>
> 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