Attempts to close the popover.
SDK
- macOS 10.7+
Framework
- App
Kit
Declaration
@IBAction func performClose(_ sender: Any?)
Parameters
sender
The sender of the action message.
Discussion
The popover will not be closed if it has a delegate and the delegate implements the returns popover
method returning false
, or if a subclass of the NSPopover class implements popover
and returns false
).
The operation will fail if the popover is displaying a nested popover or if it has a child window. A window will attempt to close its popovers when it receives a perform
message.
The popover animates out when closed unless the animates
property is set to false
.