---
title: NSWindow.CollectionBehavior
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nswindow/collectionbehavior-swift.struct
---

# NSWindow.CollectionBehavior

Window collection behaviors related to Mission Control, Spaces, and Stage Manager.

## Declaration

```swift
struct CollectionBehavior
```

## Overview

Overview Collection behaviors are properties you set on windows to control their display characteristics in window management technologies. Use them to specify a preference on how windows behave in window management technologies like Mission Control, Spaces, and Stage Manager. To set a collection behavior on a window, assign one or more behavior options to the window’s collectionBehavior property: Not all collection behaviors apply to all windowing management technologies, and some are mutually exclusive to their respective groups. For example, primary, auxiliary, and canJoinAllApplications only apply to full screen and Stage Manager. They’re also mutually exclusive. Specify at most one per window.

## Topics

### Window Collection Behaviors Creation

- [init(rawValue:)](appkit/nswindow/collectionbehavior-swift.struct/init(rawvalue:).md)

### Stage Manager and full screen

- [primary](appkit/nswindow/collectionbehavior-swift.struct/primary.md)
- [auxiliary](appkit/nswindow/collectionbehavior-swift.struct/auxiliary.md)
- [canJoinAllApplications](appkit/nswindow/collectionbehavior-swift.struct/canjoinallapplications.md)

### Spaces

- [canJoinAllSpaces](appkit/nswindow/collectionbehavior-swift.struct/canjoinallspaces.md)
- [moveToActiveSpace](appkit/nswindow/collectionbehavior-swift.struct/movetoactivespace.md)

### Mission Control

- [stationary](appkit/nswindow/collectionbehavior-swift.struct/stationary.md)

### Spaces and Mission Control

- [managed](appkit/nswindow/collectionbehavior-swift.struct/managed.md)
- [transient](appkit/nswindow/collectionbehavior-swift.struct/transient.md)

### Full screen

- [fullScreenPrimary](appkit/nswindow/collectionbehavior-swift.struct/fullscreenprimary.md)
- [fullScreenAuxiliary](appkit/nswindow/collectionbehavior-swift.struct/fullscreenauxiliary.md)
- [fullScreenNone](appkit/nswindow/collectionbehavior-swift.struct/fullscreennone.md)
- [fullScreenAllowsTiling](appkit/nswindow/collectionbehavior-swift.struct/fullscreenallowstiling.md)
- [fullScreenDisallowsTiling](appkit/nswindow/collectionbehavior-swift.struct/fullscreendisallowstiling.md)

### Window cycling

- [participatesInCycle](appkit/nswindow/collectionbehavior-swift.struct/participatesincycle.md)
- [ignoresCycle](appkit/nswindow/collectionbehavior-swift.struct/ignorescycle.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Constants

- [NSWindow.SelectionDirection](appkit/nswindow/selectiondirection.md)
- [NSWindow.ButtonType](appkit/nswindow/buttontype.md)
- [NSRunLoop—Ordering Modes for NSWindow](appkit/nsrunloop-ordering-modes-for-nsw.md)
- [NSWindow.Depth](appkit/nswindow/depth.md)
- [NSWindow.BackingStoreType](appkit/nswindow/backingstoretype.md)
- [NSWindow.OrderingMode](appkit/nswindow/orderingmode.md)
- [NSWindow.SharingType](appkit/nswindow/sharingtype-swift.enum.md)
- [NSWindow.NumberListOptions](appkit/nswindow/numberlistoptions.md)
- [NSWindow.AnimationBehavior](appkit/nswindow/animationbehavior-swift.enum.md)
- [NSWindow.OcclusionState](appkit/nswindow/occlusionstate-swift.struct.md)
- [NSWindow.TitleVisibility](appkit/nswindow/titlevisibility-swift.enum.md)
- [NSWindow.UserTabbingPreference](appkit/nswindow/usertabbingpreference-swift.enum.md)
- [NSWindow.TabbingMode](appkit/nswindow/tabbingmode-swift.enum.md)
- [Application Kit Version for Deferred Window Display Support](appkit/application-kit-version-for-deferred-window-display-support.md)
- [Application Kit Version for Custom Sheet Position](appkit/application-kit-version-for-custom-sheet-position.md)
