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: Wed, 14 Aug 2013 09:37:39 -0500
On Aug 14, 2013, at 09:21:25, Graham Cox <email@hidden> wrote:
> Doesn't the main event loop need to run for the window to visibly close? At least the modal session has to finish. If the completion code is run synchronously, it will inevitably delay this until the main loop runs.
That must be the case, but it's a poor design. The modal session has finished.
> You claim that opening the file on a thread doesn't help - I would expect it to since the main loop can run much sooner.
I didn't claim it didn't help. I said it doesn't work in our case. Were we a simple Cocoa app without years of legacy and cross-platform code to contend with, then yeah, we could easily stick the file opening code in a background thread.
--
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