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

# init(image:target:action:)

Creates a standard push button with the image you specify.

## Declaration

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

## Parameters

- `image`: The image to display in the body of the button.
- `target`: The target object that receives action messages from the button.
- `action`: The action message the button sends to the target.

## Discussion

Discussion Set the image’s accessibilityDescription property to ensure accessibility for this control.

## See Also

### Creating standard buttons

- [init(checkboxWithTitle:target:action:)](appkit/nsbutton/init(checkboxwithtitle:target:action:).md)
- [init(radioButtonWithTitle:target:action:)](appkit/nsbutton/init(radiobuttonwithtitle:target:action:).md)
- [init(title:image:target:action:)](appkit/nsbutton/init(title:image:target:action:).md)
- [init(title:target:action:)](appkit/nsbutton/init(title:target:action:).md)
