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

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

Mac Catalyst:

```
convenience init(identifier: NSTouchBarItem.Identifier, image: UIImage, target: Any?, action: Selector?)
```

macOS:

```
convenience init(identifier: NSTouchBarItem.Identifier, image: NSImage, target: Any?, action: Selector?)
```

---

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)