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 protected]> 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 protected])
> 
> 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/kperry%40apple.com
> 
> This email sent to [email protected]


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to