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

# behavior

Specifies the behavior of the popover.

```
var behavior: NSPopover.Behavior { get set }
```

## Discussion

The default value is [`NSPopover.Behavior.applicationDefined`](/documentation/AppKit/NSPopover/Behavior-swift.enum/applicationDefined). See [`NSPopover.Behavior`](/documentation/AppKit/NSPopover/Behavior-swift.enum) for possible value.

---

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)