Initializer

init(frame:pullsDown:)

Returns an NSPopUpButton object initialized to the specified dimensions.

Declaration

init(frame buttonFrame: NSRect, pullsDown flag: Bool)

Parameters

frameRect

The frame rectangle for the button, specified in the parent view's coordinate system.

flag

true if you want the receiver to display a pull-down menu; otherwise, false if you want it to display a pop-up menu.

Return Value

An initialized NSPopUpButton object, or nil if the object could not be initialized.

See Also