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 <k...@ksluder.com> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com