• 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: Quincey Morris <email@hidden>
  • Date: Wed, 14 Aug 2013 11:11:31 -0700

On Aug 14, 2013, at 08:52 , Graham Cox <email@hidden> wrote:

> Well, there's logically 'closed' and there's having the pixels on the screen removed or updated. The run loop has to run for that to happen in the normal course of things.

Actually, it's going to be the Window Server that removes the window from the screen. However, it may be that ordering-out an app window triggers a run loop source or event, which in turn notifies the Window Server. If so, the 'sleep' approach isn't going to work.

There may even be multiple [run-loop-triggered] interactions between the app and the Window Server, when a window closes.

FWIW, I also discovered (in some roughly similar scenario) that trying to unix-sleep to allow the UI to update isn't a very successful approach.

My guess, in Steve's scenario, is that a later part of the document-opening sequence is blocking the main thread for a while, but the interaction with the Window Server isn't fully finished yet, so that it gets "snagged" by the later blockage, even though the app has gone way beyond its own Open-dialog-handling code.

_______________________________________________

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


  • Follow-Ups:
    • Re: Dismissing Open dlog before doc actually opens
      • From: Steve Mills <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>)
 >Re: Dismissing Open dlog before doc actually opens (From: Roland King <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Steve Mills <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Alex Zavatone <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Steve Mills <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Dismissing Open dlog before doc actually opens
  • Next by Date: Re: Dismissing Open dlog before doc actually opens
  • 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