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

# collectionBehavior

A value that identifies the window’s behavior in window collections.

```
var collectionBehavior: NSWindow.CollectionBehavior { get set }
```

## Discussion

The possible values for this property are listed in [`NSWindow.CollectionBehavior`](/documentation/AppKit/NSWindow/CollectionBehavior-swift.struct).

---

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)