Re: NSOpenPanel runModal on a dispatch
Re: NSOpenPanel runModal on a dispatch
- Subject: Re: NSOpenPanel runModal on a dispatch
- From: Sean McBride <email@hidden>
- Date: Mon, 17 Dec 2012 13:08:03 -0500
- Organization: Rogue Research Inc.
On Sun, 16 Dec 2012 11:45:29 +0100, Tamas Nagy said:
>I'm trying to display an NSOpenPanel on a dispatch, with half-luck. The
>panel displays, but no files going to be displayed - the circle just
>spinning on the bottom-left corner. Anyone have an idea what going wrong?
Others have explained what's going on here.
There is a UI workaround... if you switch between icon and list view, it prods the thing into working.
I'll just add that my bug on this is <radar://10614610>. I consider it unlikely to get fixed given the time that's elapsed.
In my case I was showing an openpanel during document opening (to prompt the user to find a file if an alias failed to resolve). Between 10.6 and 10.7, with all the doc architecture changes, an override point in NSDocument starting using GCD and suddenly modal openpanels become unsafe to use there. :(
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