Also, avoid doing any lengthy operation on the main thread/queue. Even if a user opens a file with the intent to analyze, getting stuck for ten minutes is a suboptimal experience.
(Sent from my iPhone.) -- Conrad Shultz On Jul 2, 2012, at 12:52, Lee Ann Rucker <lruc...@vmware.com> wrote: > Subclass [NSWindow restorationClass] and return nil should work. > > ----- Original Message ----- > From: "Todd Heberlein" <todd_heberl...@mac.com> > To: Cocoa-dev@lists.apple.com > Sent: Monday, July 2, 2012 10:20:05 AM > Subject: NSDocument last document loading > > I have a document-based application, and when it starts it tries to > automatically load previously opened documents (running on Lion). Is there a > way to disable this behavior in the program? > > > My problem is that the document loads/analyzes data sets, and some of the > very large ones can take up to 10 minutes to analyze. Sitting around waiting > 10 minutes for the app to finish starting is a pain, especially when the user > just wants to quickly view a new, small data set. > > Thanks, > > Todd > > _______________________________________________ > > 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/lrucker%40vmware.com > > This email sent to lruc...@vmware.com > _______________________________________________ > > 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/conrad%40synthetiqsolutions.com > > This email sent to con...@synthetiqsolutions.com _______________________________________________ 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