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

# autosavingDelay

The time interval (in seconds) for periodic autosaving.

```
var autosavingDelay: TimeInterval { get set }
```

## Discussion

A value of 0 indicates that periodic autosaving should not be done at all. The `NSDocumentController` object uses this number as the amount of time to wait between detecting that a document has unautosaved changes and sending the document an [`autosave(withDelegate:didAutosave:contextInfo:)`](/documentation/AppKit/NSDocument/autosave(withDelegate:didAutosave:contextInfo:)) message. The default value is `0`.

---

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)