<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPopover/close()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPopover(im)close"
  },
  "title" : "close()"
}
-->

# close()

Forces the popover to close without consulting its delegate.

```
func close()
```

## Discussion

Any popovers nested within the popovers will also receive a [`close()`](/documentation/AppKit/NSPopover/close()) message. When a window is closed in response to the [`close()`](/documentation/AppKit/NSWindow/close()) message being sent, all of its popovers are closed. The popover animates out when closed unless the [`animates`](/documentation/AppKit/NSPopover/animates) property is set to <doc://com.apple.documentation/documentation/Swift/false>.

---

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)