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

# backingType

The window’s backing store type.

```
var backingType: NSWindow.BackingStoreType { get set }
```

## Discussion

The possible values for this property are described in [`NSWindow.BackingStoreType`](/documentation/AppKit/NSWindow/BackingStoreType). You can set the property only to switch a buffered window to retained or vice versa; you can’t change the backing type to or from nonretained after initializing a `NSWindow` object (an error is generated if you attempt to do so).

## See Also

[`-  initWithContentRect:styleMask:backing:defer:screen:`](/documentation/AppKit/NSWindow/init(contentRect:styleMask:backing:defer:screen:))

Initializes an allocated window with the specified values.

[`-  initWithContentRect:styleMask:backing:defer:`](/documentation/AppKit/NSWindow/init(contentRect:styleMask:backing:defer:))

Initializes the window with the specified values.



---

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)