Contents

init(title:menu:target:action:)

Creates a combo button that displays a title.

Declaration

convenience init(title: String, menu: NSMenu?, target: Any?, action: Selector?)

Parameters

  • title:

    The localized string to display in the button. Use the inherited Alignment property to set the text alignment for the string.

  • menu:

    The menu to display when someone chooses an alternate action.

  • target:

    The object that receives the default action message when someone clicks the button.

  • action:

    The action message to send to the target object.

Return Value

A combo button configured with only a title string.

Discussion

This method sets the image property to nil.

See Also

Creating a Combo Button