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

# performTextFinderAction(_:)

Performs all find oriented actions.

```
func performTextFinderAction(_ sender: Any?)
```

## Parameters

`sender`

The sender of the find action.

## Discussion

When an application performs a find action, it should send this message to the responder chain.

A responder of `performTextFinderAction:` is responsible for creating and owning an instance of `NSTextFinder`. Before any other messages are sent to the `NSTextFinder`, you should set its ‘client’ property to an object which implements the `NSTextFinderClient` protocol.

> Note:
> Before OS X v10.7, the default action for these menu items was ``doc://com.apple.appkit/documentation/AppKit/NSTextView/performFindPanelAction(_:)``. Whenever possible which you should update your implementation to use this new action.

---

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)