• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dismissing Open dlog before doc actually opens
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Dismissing Open dlog before doc actually opens (From: "Mills, Steve" <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Bryan Vines <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Steve Mills <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Kyle Sluder <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Steve Mills <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Kyle Sluder <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Dismissing Open dlog before doc actually opens
  • Next by Date: Re: "Provide Feedback" on documentation pages is broken
  • Previous by thread: Re: Dismissing Open dlog before doc actually opens
  • Next by thread: Re: Dismissing Open dlog before doc actually opens
  • Index(es):
    • Date
    • Thread