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: Steve Mills <email@hidden>
- Date: Mon, 12 Aug 2013 22:09:06 -0500
On Aug 12, 2013, at 21:42:10, Kyle Sluder <email@hidden>
wrote:
> 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.
That didn't make any difference here. Returning YES or NO from that appeared to have the same behavior, even if I selected 2 files in the Open dlog. Also, thread safety is a major concern. Oh, I think I see why it didn't make a difference. I'd forgotten that we are running the open dlog ourself, not using Cocoa's. I might look at using a completion handler. Thanks, both of you.
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157
_______________________________________________
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