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: Steve Mills <email@hidden>
- Date: Tue, 13 Aug 2013 13:02:36 -0500
On Aug 12, 2013, at 21:22:07, Bryan Vines <email@hidden> wrote:
> Can you run an NSOpenPanel with a completion handler block, and in that block, call a method on a background thread to actually perform the file read operation?
Well, this won't work. The current code runs the dlog with runModal instead of beginWithCompletionHandler. If I change it to beginWithCompletionHandler, it returns right away and falls out of our semi-portable code for opening files before the dlog is even presented. We expect the Open dlog to be modal, not modeless. Any other ideas? I also tried calling orderOut after runModal returned, but it didn't make it go away.
--
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