Re: showing app windows at launch prior to NSDocument tasks
Re: showing app windows at launch prior to NSDocument tasks
- Subject: Re: showing app windows at launch prior to NSDocument tasks
- From: Jerry Krinock <email@hidden>
- Date: Wed, 16 Jul 2014 21:19:15 -0700
On 2014 Jul 16, at 11:01, edward taffel <email@hidden> wrote:
> is there a way to defer the opening of documents (autosaved, launch via double-click or drop on the dock icon) until some app windows have exposed? or, alternatively, is there a point during app launch prior to NSDocument tasks to put up some windows?—the earliest point i can conceive is application delegate init, but no luck here either.
I think the first public-API message that you get when a document opens during launch, due to autosave, double-click or drop-on-Dock is -[NSDocumentController openDocumentWithContentsOfURL:display:error:]. It gets sent to the shared document controller. You should be able to do something clever with that.
_______________________________________________
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