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

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

Creates a combo button that displays an image.

```
convenience init(image: NSImage, menu: NSMenu?, target: Any?, action: Selector?)
```

## Parameters

`image`

The image to display in the button.

`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 the specified image.

## Discussion

This method sets the [`title`](/documentation/AppKit/NSComboButton/title) property to an empty string.

---

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)