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

# disableSnapshotRestoration()

Disables snapshot restoration.

```
func disableSnapshotRestoration()
```

## Discussion

After disabling snapshot restoration, the system doesn’t snapshot the window’s restorable state.

---

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)