<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPopover/Behavior-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSPopoverBehavior"
  },
  "title" : "NSPopover.Behavior"
}
-->

# NSPopover.Behavior

The appearance and disappearance behavior of a popover.

```
enum Behavior
```

## Topics

### Constants

[`NSPopover.Behavior.applicationDefined`](/documentation/AppKit/NSPopover/Behavior-swift.enum/applicationDefined)

Your application assumes responsibility for closing the popover.

[`NSPopover.Behavior.transient`](/documentation/AppKit/NSPopover/Behavior-swift.enum/transient)

The system will close the popover when the user interacts with a user interface element outside the popover.

[`NSPopover.Behavior.semitransient`](/documentation/AppKit/NSPopover/Behavior-swift.enum/semitransient)

The system will close the popover when the user interacts with user interface elements in the window containing the popover’s positioning view.



---

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)