Instance Method


Allows a delegate to override a close request.


- (BOOL)popoverShouldClose:(NSPopover *)popover;



The popover.

Return Value

YES if the popover should close, NO otherwise.


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

- popoverWillShow:

Invoked when the popover will show.

- popoverDidShow:

Invoked when the popover has been shown.

- popoverWillClose:

Invoked when the popover is about to close.

- popoverDidClose:

Invoked when the popover did close.

- popoverDidDetach:

Indicates that a popover has been released while it's in an implicitly detached state.

- popoverShouldDetach:

Returns a Boolean value that indicates whether a popover should detach from its positioning view and become a separate window.