• 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 12:20:42 -0700

On Aug 14, 2013, at 11:44 , Steve Mills <email@hidden> wrote:

> I only used sleep in that example to illustrate that orderOut was not hiding the window, and that there were not "deeper issues" in our code base.

What I was trying to say is that using 'sleep' -- as it turns out -- can't illustrate anything, because it actually *prevents* the window from being hidden. As Sean just said, there are dueling systems hiding under your reasonable-looking code that prevent it from doing what you intended.

> The document loading code loads a complex document structure, which naturally blocks the main thread.

Sure, and we have no reason to think there's anything wrong with your code. But if it does block the main thread for any significant length of time, there's likely *no* reliable solution, other than a hypothetical rewrite that moves all of the time-consuming bits of the loading into a background thread (which, needless to say, I doubt you're interested in contemplating).

Keep in mind that even if you get things running smoothly on your Mac, you have no guarantee that all your customers will see the same good behavior.

_______________________________________________

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>)
 >Re: Dismissing Open dlog before doc actually opens (From: Quincey Morris <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: Can't type chars into UITextField?
  • 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