<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPopover/didCloseNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSPopoverDidCloseNotification"
  },
  "title" : "didCloseNotification"
}
-->

# didCloseNotification

Sent after the popover has finished animating offscreen.

```
class let didCloseNotification: NSNotification.Name
```

## Discussion

The value of the `userInfo` key [`closeReasonUserInfoKey`](/documentation/AppKit/NSPopover/closeReasonUserInfoKey) specifies the reason for closing. It can currently be either [`standard`](/documentation/AppKit/NSPopover/CloseReason/standard) or [`detachToWindow`](/documentation/AppKit/NSPopover/CloseReason/detachToWindow), although more reasons for closing may be added in the future.

To observe this notification using Swift concurrency, use [`NSPopover.DidCloseMessage`](/documentation/AppKit/NSPopover/DidCloseMessage).

---

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)