<!--
{
  "availability" : [
    "macOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSComboButton/init(title:menu:target:action:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSComboButton(cm)comboButtonWithTitle:menu:target:action:"
  },
  "title" : "init(title:menu:target:action:)"
}
-->

# init(title:menu:target:action:)

Creates a combo button that displays a title.

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

## Parameters

`title`

The localized string to display in the button. Use the inherited [`alignment`](/documentation/AppKit/NSControl/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`](/documentation/AppKit/NSComboButton/image) property to `nil`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)