Re: Prevent autoloading of last opened document
Re: Prevent autoloading of last opened document
- Subject: Re: Prevent autoloading of last opened document
- From: Kyle Sluder <email@hidden>
- Date: Thu, 13 Feb 2014 17:38:11 -0800
On Thu, Feb 13, 2014, at 05:21 PM, Dave Fernandes wrote:
> Try returning nil for the document in [NSDocumentController
> reopenDocumentForURL::::]’s completion handler, and also return the
> following error in the completion handler:
>
> [NSError errorWithDomain:NSCocoaErrorDomain code:NSUserCancelledError
> userInfo:nil]
This sounds like a great way to lose documents that were autosaved at
quit but never manually saved.
They won't be restored, and then they'll be deleted from the autosave
directory.
Eric, why are you trying to avoid restoring documents?
--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