<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDocument/autosavingIsImplicitlyCancellable",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDocument(py)autosavingIsImplicitlyCancellable"
  },
  "title" : "autosavingIsImplicitlyCancellable"
}
-->

# autosavingIsImplicitlyCancellable

A Boolean value that indicates whether you can cancel an in-progress autosave operation.

```
var autosavingIsImplicitlyCancellable: Bool { get }
```

## Discussion

The value of this property is <doc://com.apple.documentation/documentation/Swift/true> if autosaving is in progress but nothing bad would happen if it were cancelled. For example, when periodic autosaving is being done only for crash protection, which doesn’t need to be done all of the time, this property is set to <doc://com.apple.documentation/documentation/Swift/true>. When autosaving is being done because the document is being closed, the property is set to <doc://com.apple.documentation/documentation/Swift/false>.

When the value is <doc://com.apple.documentation/documentation/Swift/true>, your document-writing code can invoke [`unblockUserInteraction()`](/documentation/AppKit/NSDocument/unblockUserInteraction()) after recording the fact that changes to the document model made by the user should first cancel the rest of the writing. Your code that makes changes to the document model then must always do that cancellation first. If your writing code is implicitly cancelled in this way, it should set the <doc://com.apple.documentation/documentation/Foundation/NSError> object passed by reference to the writing method to <doc://com.apple.documentation/documentation/Foundation/NSUserCancelledError-swift.var> in <doc://com.apple.documentation/documentation/Foundation/NSCocoaErrorDomain>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)