Returns whether the receiving subclass of
NSDocument supports autosaving of drafts.
- macOS 10.8+
true if the receiving subclass of
NSDocument supports autosaving of drafts; otherwise
The system expects that an
NSDocument subclass that returns
true from this method can properly handle save operations that use the
NSDocument save operation type.
The default implementation of this method returns
true for apps linked on or after OS X v10.8, and returns no for apps linked against earlier versions of macOS.
To opt out of autosaving in your
NSDocument subclass when linking on or after OS X v10.8, override this method to return
When linking against a macOS version prior to 10.8, you can declare that your
NSDocument subclass supports autosaving by overriding this method to return
AppKit invokes this method at various times. For example, when the
update method is called with
NSDocument but without the
NSDocument change type,
NSDocument will the next autosave to use
NSDocument and return the document into a draft.
Do not invoke this method to find out whether autosaving of a draft will be done.