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

# init(checkboxWithTitle:target:action:)

Creates a standard checkbox with the title you specify.

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

## Discussion

---

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)