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: 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