Re: Prevent autoloading of last opened document
Re: Prevent autoloading of last opened document
- Subject: Re: Prevent autoloading of last opened document
- From: Dave Fernandes <email@hidden>
- Date: Fri, 14 Feb 2014 00:24:18 -0500
Good point. I guess if the document URL is nil, you should think twice about this.
On Feb 13, 2014, at 8:38 PM, Kyle Sluder <email@hidden> wrote:
> 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