Re: NSDocument last document loading
Re: NSDocument last document loading
- Subject: Re: NSDocument last document loading
- From: Alex Zavatone <email@hidden>
- Date: Mon, 02 Jul 2012 16:05:49 -0400
Did you check the docs in Xcode for "Restoring Your Windows and Custom Objects at Launch TIme" or "User Interface Preservation" ?
By any chance, do you have a restoreWindowWithIdentifier method in your window classes or is there a YES for isRestorable on the window that holds the view that would be loading the data?
(I'm assuming that a window opens up that loads the large data set).
Maybe this will help…
The actual process of writing out your application state to disk and restoring it later is handled by Cocoa, but you must tell Cocoa what to save. Your app’s windows are the starting point for all save operations. Cocoa iterates over all of your app’s windows and saves data for the ones whose isRestorable method returns YES. Most windows are preserved by default, but you can change the preservation state of a window using the setRestorable: method.
On Jul 2, 2012, at 1:20 PM, Todd Heberlein <email@hidden> wrote:
> 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 (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
_______________________________________________
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