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: Sean McBride <email@hidden>
- Date: Wed, 14 Aug 2013 14:58:42 -0400
- Organization: Rogue Research Inc.
On Wed, 14 Aug 2013 09:03:59 -0500, Steve Mills said:
>There most certainly is not a deeper issue with my code. Run this and
>you'll see for yourself:
>
>-(IBAction) openDocument:(id)sender
>{
> NSOpenPanel* p = [NSOpenPanel openPanel];
>
> if([p runModal] == NSFileHandlingPanelOKButton) {
> [p orderOut:self];
> // Simulate code that takes 5 seconds to open a document:
> sleep(5);
> }
>}
Are you able to try that on 10.6? I had some similar problems starting with 10.7 because of the document architecture re-architecting. A lot of the openDocument chain is now done (internally) with libdispatch which had some subtle side effects like you describe. I had to use a DTS incident on it eventually.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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