---
title: "textView(_:didCheckTextIn:types:options:results:orthography:wordCount:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextviewdelegate/textview(_:didchecktextin:types:options:results:orthography:wordcount:)"
---

# textView(_:didCheckTextIn:types:options:results:orthography:wordCount:)

Invoked to allow the delegate to modify the text checking results after checking has occurred.

## Declaration

```swift
@MainActor optional func textView(_ view: NSTextView, didCheckTextIn range: NSRange, types checkingTypes: NSTextCheckingTypes, options: [NSSpellChecker.OptionKey : Any] = [:], results: [NSTextCheckingResult], orthography: NSOrthography, wordCount: Int) -> [NSTextCheckingResult]
```

## Parameters

- `view`: The text view sending the message.
- `range`: The range that was checked.
- `checkingTypes`: The type of checking that was performed. The possible constants are listed in doc://com.apple.documentation/documentation/Foundation/NSTextCheckingTypes and can be combined using the C bit-wise OR operator to perform multiple checks at the same time.
- `options`: A dictionary of values used during the checking process to perform. See Spell Checking Option Dictionary Keys for the supported values.
- `results`: An array of doc://com.apple.documentation/documentation/Foundation/NSTextCheckingResult instances.
- `orthography`: The orthography of the text.
- `wordCount`: The number of words checked.

## Return Value

Return Value An array of NSTextCheckingResult instances. You can return the results array as is, or an altered array of NSTextCheckingResult objects.

## Discussion

Discussion Invoked by handleTextCheckingResults(_:forRange:types:options:orthography:wordCount:), this method allows observation of text checking, or modification of the results

## See Also

### Working With the Spelling Checker

- [textView(_:shouldSetSpellingState:range:)](appkit/nstextviewdelegate/textview(_:shouldsetspellingstate:range:).md)
- [textView(_:willCheckTextIn:options:types:)](appkit/nstextviewdelegate/textview(_:willchecktextin:options:types:).md)
