# NSPopover class documentation

Generated at 2026-06-27 19:09:52 +0000
Software documentation for the NSPopover class
AppKit/NSPopover.h
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
animates
Returns current value of the animate flag.
appearance
Returns the current appearance setting.
behavior
Returns current behavior setting
close
Close the popover.
contentSize
Returns an NSSize representing the size of the NSPopover content view.
contentViewController
Returns the current contentViewController.
delegate
Return delegate
isShown
Is the popover being shown.
performClose:
sender
Close the popover as an IBAction.
positioningRect
Return the NSRect.
setAnimates:
flag
Sets the animate flag. If `YES` then the popover will animate when it appears or disappears.
setAppearance:
value
Sets ths appearance of the popover. Minimal is the default. HUD is not supported.
setBehavior:
value
Sets current popup behavior. Valid settings are: NSPopupBehaviorApplicationDefined, NSPopupBehaviorTransient, NSPopupBehaviorSemiTransient.
setContentSize:
value
Accepts an NSSize value for the current content size.
setContentViewController:
controller
Sets the contentViewController. If in a storyboard this is automatically set but if this is in a model that is NOT a storyboard (nib, xib, gorm, etc) then there must be a model with the same name as the class name of the contentViewController. Also, This model must have the "view" outlet set to the view that will be shown in the popup, if both of these conditions are not met, then the code will throw an NSInternalInconsistency exception to report the issue back to the user.
setDelegate:
value
Set delegate
setPositioningRect:
value
Set relative position of the popup to the view it is associated with.
showRelativeToRect:
positioningRect
ofView:
positioningView
preferredEdge:
preferredEdge
Show the popover relative to the specified rect on the edge specified.
Software documentation for the NSObject(NSPopoverDelegate) informal protocol
AppKit/NSPopover.h
Description forthcoming.
detachableWindowForPopover:
popover
Description forthcoming.
popoverDidClose:
notification
Description forthcoming.
popoverDidShow:
notification
Description forthcoming.
popoverShouldClose:
popover
Description forthcoming.
popoverWillClose:
notification
Description forthcoming.
popoverWillShow:
notification
Description forthcoming.
Software documentation for the NSPopoverDelegate protocol
AppKit/NSPopover.h
Description forthcoming.