<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextFinder/noteClientStringWillChange()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextFinder(im)noteClientStringWillChange"
  },
  "title" : "noteClientStringWillChange()"
}
-->

# noteClientStringWillChange()

Invoke this method when the searched content will change.

```
func noteClientStringWillChange()
```

## Discussion

When incremental search is enabled, this method must be called when it is known that the client’s string will be modified. This method must be called before the client string modification takes place.

## See Also

[`client`](/documentation/AppKit/NSTextFinder/client)

The object that provides the target search string, find bar location, and feedback methods.



---

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)