<!--
{
  "availability" : [
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAccessibilityCustomAction/init(name:target:selector:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAccessibilityCustomAction(im)initWithName:target:selector:"
  },
  "title" : "init(name:target:selector:)"
}
-->

# init(name:target:selector:)

Creates a custom action object with the specified name, target, and selector.

```
init(name: String, target: any NSObjectProtocol, selector: 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)