<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextCheckingClient",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTextCheckingClient"
  },
  "title" : "NSTextCheckingClient"
}
-->

# NSTextCheckingClient

```
protocol NSTextCheckingClient : NSTextInputClient, NSTextInputTraits
```

## Topics

### Instance Methods

[`func addAnnotations([NSAttributedString.Key : String], range: NSRange)`](/documentation/AppKit/NSTextCheckingClient/addAnnotations(_:range:))

[`func annotatedSubstring(forProposedRange: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?`](/documentation/AppKit/NSTextCheckingClient/annotatedSubstring(forProposedRange:actualRange:))

[`func candidateListTouchBarItem() -> NSCandidateListTouchBarItem<AnyObject>?`](/documentation/AppKit/NSTextCheckingClient/candidateListTouchBarItem())

[`func removeAnnotation(NSAttributedString.Key, range: NSRange)`](/documentation/AppKit/NSTextCheckingClient/removeAnnotation(_:range:))

[`func replaceCharacters(in: NSRange, withAnnotatedString: NSAttributedString)`](/documentation/AppKit/NSTextCheckingClient/replaceCharacters(in:withAnnotatedString:))

[`func selectAndShow(NSRange)`](/documentation/AppKit/NSTextCheckingClient/selectAndShow(_:))

[`func setAnnotations([NSAttributedString.Key : String], range: NSRange)`](/documentation/AppKit/NSTextCheckingClient/setAnnotations(_:range:))

[`func view(for: NSRange, firstRect: NSRectPointer?, actualRange: NSRangePointer?) -> NSView?`](/documentation/AppKit/NSTextCheckingClient/view(for:firstRect:actualRange:))

## Relationships

### Inherits From

[`NSTextInputClient`](/documentation/AppKit/NSTextInputClient)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSTextInputTraits`](/documentation/AppKit/NSTextInputTraits)

---

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)