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

# hidesOnDeactivate

A Boolean value that indicates whether the window is removed from the screen when its application becomes inactive.

```
var hidesOnDeactivate: Bool { get set }
```

## Discussion

The value of this property is <doc://com.apple.documentation/documentation/Swift/true> if the window is removed from the screen when its application is deactivated; <doc://com.apple.documentation/documentation/Swift/false> if it remains onscreen. The default value for `NSWindow` is <doc://com.apple.documentation/documentation/Swift/false>; the default value for `NSPanel` is <doc://com.apple.documentation/documentation/Swift/true>.

---

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)