<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPopoverDelegate/popoverDidDetach(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSPopoverDelegate(im)popoverDidDetach:"
  },
  "title" : "popoverDidDetach(_:)"
}
-->

# popoverDidDetach(_:)

Indicates that a popover has been released while it’s in an implicitly detached state.

```
@MainActor optional func popoverDidDetach(_ popover: NSPopover)
```

## Parameters

`popover`

The popover that detached from its anchor view and is not closing.

## Discussion

This method is not called when the popover’s detached window is returned by [`detachableWindow(for:)`](/documentation/AppKit/NSPopoverDelegate/detachableWindow(for:)).

---

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)