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 <quinceymor...@rivergatesoftware.com> wrote: > On Jan 29, 2013, at 08:18 , Gilles Celli <gilles.ce...@ecgs.lu> 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 (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