<!--
{
  "availability" : [
    "macOS: 15.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWritingToolsCoordinator/init(delegate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWritingToolsCoordinator(im)initWithDelegate:"
  },
  "title" : "init(delegate:)"
}
-->

# init(delegate:)

Creates a writing tools coordinator and assigns the specified
delegate object to it.

```
init(delegate: (any NSWritingToolsCoordinator.Delegate)?)
```

## Parameters

`delegate`

An object capable of handling Writing Tools interactions
for your view. The delegate must be able to modify your view’s text
storage and refresh the view’s layout and appearance.

## Discussion

Create the coordinator object during your view’s initialization, and assign
the object to your view. Assign the coordinator to the [`writingToolsCoordinator`](/documentation/AppKit/NSView/writingToolsCoordinator)
property of your view.

---

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)