popoverShouldClose(_:)
Allows a delegate to override a close request.
Declaration
@MainActor optional func popoverShouldClose(_ popover: NSPopover) -> BoolParameters
- popover:
The popover.
Return Value
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.