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:58:33 +0100
It's a live video app, where rendering happening on a CVDisplayLink thread, so the app still running and do its job while an OpenPanel (or SavePanel) displaying. I just need to block the UI to make sure the users can't interact the app while an open panel displaying.
On Dec 17, 2012, at 6:46 AM, Kyle Sluder <email@hidden> wrote:
> On Sun, Dec 16, 2012, at 09:43 PM, Tamas Nagy wrote:
>> Thanks Kyle. I know about beginWithCompletionHandler: , but I really need
>> a modal window at that point my application opens the open panel.
>
> I have to ask, why?
>
> If you want to block interaction with a document, you can use
> -beginSheetModalForWindow:completionHandler:.
>
> What circumstances could arise that would require you to block access to
> the entire app?
>
> --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