<!--
{
  "availability" : [
    "macOS: 15.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWritingToolsCoordinator/Context/resolvedRange",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWritingToolsCoordinatorContext(py)resolvedRange"
  },
  "title" : "resolvedRange"
}
-->

# resolvedRange

The actual range of text that Writing Tools might change, which can
be different than the range of text you supplied.

```
var resolvedRange: NSRange { get }
```

## Discussion

After analyzing the text in your context object, Writing Tools sets
this property to the portion of [`attributedString`](/documentation/AppKit/NSWritingToolsCoordinator/Context/attributedString) it might modify.
Initially, this property has a location of
<doc://com.apple.documentation/documentation/Foundation/NSNotFound-4qp9h> and a length
of `0`, but Writing Tools updates those values before making any changes
to the text.

While the Writing Tools operation is active, make sure Writing Tools has
exclusive access to the text in this range. Your [`NSWritingToolsCoordinator.Delegate`](/documentation/AppKit/NSWritingToolsCoordinator/Delegate-swift.protocol)
object can make changes to the text as part of incorporating Writing Tools
results, but don’t allow changes to come from other sources. For example,
don’t let someone edit the text in this range directly until Writing Tools finishes.

---

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)