---
title: "init(image:menu:target:action:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nscombobutton/init(image:menu:target:action:)"
---

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

Creates a combo button that displays an image.

## Declaration

```swift
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

Return Value A combo button configured with only the specified image.

## Discussion

Discussion This method sets the title property to an empty string.

## See Also

### Creating a Combo Button

- [init(title:image:menu:target:action:)](appkit/nscombobutton/init(title:image:menu:target:action:).md)
- [init(title:menu:target:action:)](appkit/nscombobutton/init(title:menu:target:action:).md)
