Returns whether the receiver supports autosaving in place.
- macOS 10.7+
YES if the receiver supports autosaving in place;
The default implementation of this method returns
NO. You can override it and return
YES to declare that your subclass of
NSDocument can do autosaving in place. You should not invoke this method to find out whether autosaving in place is actually being done at any particular moment. You should instead use the
NSSave parameter that the system passes to your overrides of save and write methods.
AppKit invokes this method at a variety of times, and not always on the main thread. For example,
autosave invokes this method as part of determining whether the autosaving will be performed in place (
NSAutosave) or in a separate autosave directory (
NSAutosave). As another example, the
can method and the
NSDocument machinery for handling unsaved changes at app termination time both invoke this method as part of determining whether alerts about unsaved changes should be presented to the user.