init(textCell:pullsDown:)
Returns an NSPopUpButtonCell object initialized with the specified title.
Declaration
init(textCell stringValue: String, pullsDown pullDown: Bool)Parameters
Return Value
An initialized NSPopUpButtonCell object, or nil if the object could not be initialized.
Discussion
This menu item is assigned the default pop-up button action that displays the menu. To set the action and target, use the setAction: and setTarget: methods of the item’s corresponding NSMenuItem object.
This method is the designated initializer of the class.
See Also
Related Documentation
- Application Menu and Pop-up List Programming Topics