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

# init(checkboxWithTitle:target:action:)

Creates a standard checkbox with the title you specify.

## Declaration

```swift
convenience init(checkboxWithTitle title: String, target: Any?, action: Selector?)
```

## Parameters

- `title`: The localized title string to display on the button.
- `target`: The target object that receives action messages from the button.
- `action`: The action message the button sends to the target.

## See Also

### Creating standard buttons

- [init(image:target:action:)](appkit/nsbutton/init(image: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)
