Re: NSOpenPanel runModal on a dispatch
Re: NSOpenPanel runModal on a dispatch
- Subject: Re: NSOpenPanel runModal on a dispatch
- From: Tamas Nagy <email@hidden>
- Date: Mon, 17 Dec 2012 06:43:59 +0100
Thanks Kyle. I know about beginWithCompletionHandler: , but I really need a modal window at that point my application opens the open panel.
On Dec 16, 2012, at 9:39 PM, Kyle Sluder <email@hidden> wrote:
> On Sun, Dec 16, 2012, at 12:04 PM, Tamas Nagy wrote:
>> Thanks for the approach Kyle, but dispatch_async performs asynchronously,
>> so it should not block the main thread. I fallback to
>> performSelectorOnMainThread: method in my app, but the dispatch way is a
>> bit straightforward in my opinion. I'll fill a rdar on this.
>
> By the way, I've just filed a radar asking for -[NSOpenPanel runModal]
> to be deprecated: rdar://problem/12889956
>
> -beginWithCompletionHandler: is a far better user experience, and it's
> immune to this problem. Use that.
>
> --Kyle Sluder
_______________________________________________
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