• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOpenPanel runModal on a dispatch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSOpenPanel runModal on a dispatch
      • From: Kyle Sluder <email@hidden>
References: 
 >NSOpenPanel runModal on a dispatch (From: Tamas Nagy <email@hidden>)
 >Re: NSOpenPanel runModal on a dispatch (From: Mike Abdullah <email@hidden>)
 >Re: NSOpenPanel runModal on a dispatch (From: Tamas Nagy <email@hidden>)
 >Re: NSOpenPanel runModal on a dispatch (From: Mike Abdullah <email@hidden>)
 >Re: NSOpenPanel runModal on a dispatch (From: Kyle Sluder <email@hidden>)
 >Re: NSOpenPanel runModal on a dispatch (From: Tamas Nagy <email@hidden>)
 >Re: NSOpenPanel runModal on a dispatch (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSOpenPanel runModal on a dispatch
  • Next by Date: Re: NSOpenPanel runModal on a dispatch
  • Previous by thread: Re: NSOpenPanel runModal on a dispatch
  • Next by thread: Re: NSOpenPanel runModal on a dispatch
  • Index(es):
    • Date
    • Thread