Contents

popoverShouldClose(_:)

Allows a delegate to override a close request.

Declaration

@MainActor optional func popoverShouldClose(_ popover: NSPopover) -> Bool

Parameters

  • popover:

    The popover.

Return Value

true if the popover should close, false otherwise.

Discussion

The popover invokes this method on its delegate whenever it is about to close. This gives the delegate a chance to override the close.

If there is no delegate or the delegate does not implement this method the default behavior is that the popover will close.

See Also

Popover Visibility