Instance Method

initWithFrame:pullsDown:

Returns an NSPopUpButton object initialized to the specified dimensions.

Declaration

- (instancetype)initWithFrame:(NSRect)buttonFrame pullsDown:(BOOL)flag;

Parameters

frameRect

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

flag

YES if you want the receiver to display a pull-down menu; otherwise, NO 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