Re: NSDocument's Open File Panel unresponsive when opening large file from disc
Re: NSDocument's Open File Panel unresponsive when opening large file from disc
- Subject: Re: NSDocument's Open File Panel unresponsive when opening large file from disc
- From: Gilles Celli <email@hidden>
- Date: Tue, 29 Jan 2013 21:00:15 +0100
Ok, sounds good...but what bothers me is that I'm using an NSDocument based app:
so can I use without problems NSOpenPanel's beginSheetModalForWindow:completionHandler: method instead of using NSDocument's readFomURL:ofType:error ?
On 29 janv. 2013, at 18:36, Quincey Morris <email@hidden> wrote:
> On Jan 29, 2013, at 08:18 , Gilles Celli <email@hidden> wrote:
>
>> Simply put, the Open Panel should be closed, but it stays open until the data file has been processed and the data displayed as a graph.
>
> If you're using one of the 'begin…completionHandler:' methods to show the panel, you can invoke '[openPanel orderOut: nil]' in the completion handler to dismiss the panel *before* you start your conversions. (Don't use 'close' instead -- it's not sandbox compatible.)
>
> In the case where you're showing another sheet during later processing (e.g. a progress sheet or an alert sheet), you *must* order out the open panel before displaying the second sheet.
>
>
_______________________________________________
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