Re: Dismissing Open dlog before doc actually opens
Re: Dismissing Open dlog before doc actually opens
- Subject: Re: Dismissing Open dlog before doc actually opens
- From: Kyle Sluder <email@hidden>
- Date: Mon, 12 Aug 2013 19:42:10 -0700
On Aug 12, 2013, at 4:27 PM, "Mills, Steve" <email@hidden> wrote:
> I haven't been able to find any info about this, but I might be searching for the wrong thing. How can we get rid of the Open dlog so it doesn't hang around while the document is being read? It's an incredibly annoying design.
Are you using NSDocument? If so, return YES from +canConcurrentlyReadDocumentsOfType: to let NSDocumentController know it can initialize your document in the background. Then it will call -makeWindowControllers on the main thread.
If you're running the NSOpenPanel yourself, just fire off your background work from its completion handler.
--Kyle Sluder
_______________________________________________
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