Instance Property


The edge of the button on which to display the menu when screen space is constrained.


var preferredEdge: NSRectEdge { get set }


Possible values include NSMinXEdge, NSMinYEdge, NSMaxXEdge, or NSMaxYEdge. For pull-down menus, the default behavior is to position the menu under the button. The bottom edge corresponds to the value NSMaxYEdge for flipped views or NSMinYEdge for unflipped views. For most pop-up menus, the NSPopUpButton object attempts to show the selected item directly over the button.