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

# preferredBackingLocation

A Boolean value that indicates the preferred location for the window’s backing store.

```
var preferredBackingLocation: NSWindow.BackingLocation { get set }
```

## Discussion

See [`NSWindow.BackingLocation`](/documentation/AppKit/NSWindow/BackingLocation-swift.enum) for possible values. It’s recommended that you set this property only when optimizing for performance.

---

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)