On Aug 14, 2013, at 09:21:25, Graham Cox <appt...@me.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to