Re: Document drafts
Re: Document drafts
- Subject: Re: Document drafts
- From: Kevin Perry <email@hidden>
- Date: Mon, 13 Mar 2017 10:17:37 -0700
Drafts are documents that have been autosaved in a user-visible location (i.e. the app’s iCloud container) and therefore aren’t typical “Untitled” documents from the programmer’s perspective as their fileURL property is not nil. However, they still behave like “Untitled” documents in that they will prompt the user when they close it about whether and where the document should be saved.
Contrast this with traditional (non-autosavesInPlace) Untitled document which may autosaved in a non-user-visible location (~/Library/Autosave Information) for which fileURL is still nil, and autosavedContentsFileURL is used instead.
-KP
> On Mar 12, 2017, at 1:56 PM, Daryle Walker <email@hidden> wrote:
>
> Some of the API for NSDocument is oriented around draft documents. What is a draft and how does it differ from a non-draft? How do I create/open a document in draft mode? I didn't see anything about it in the Document guide; were drafts supposed to be a New World Order like auto-saves or versions, but got abandoned?
>
> Sent from my iPhone
> _______________________________________________
>
> 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