Contents

init(frame:pullsDown:)

Returns an NSPopUpButton object initialized to the specified dimensions.

Declaration

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

Parameters

  • buttonFrame:

    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

Related Documentation

  • Application Menu and Pop-up List Programming Topics
  • pullsDown