<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFindPanelAction",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSFindPanelAction"
  },
  "title" : "NSFindPanelAction"
}
-->

# NSFindPanelAction

These constants define the tags for [`performFindPanelAction(_:)`](/documentation/AppKit/NSTextView/performFindPanelAction(_:)).

```
enum NSFindPanelAction
```

## Topics

### Constants

[`NSFindPanelAction.showFindPanel`](/documentation/AppKit/NSFindPanelAction/showFindPanel)

Displays the find panel.

[`NSFindPanelAction.next`](/documentation/AppKit/NSFindPanelAction/next)

Finds the next instance of the queried text.

[`NSFindPanelAction.previous`](/documentation/AppKit/NSFindPanelAction/previous)

Finds the previous instance of the queried text.

[`NSFindPanelAction.replaceAll`](/documentation/AppKit/NSFindPanelAction/replaceAll)

Replaces all query instances within the text view.

[`NSFindPanelAction.replace`](/documentation/AppKit/NSFindPanelAction/replace)

Replaces a single query instance within the text view.

[`NSFindPanelAction.replaceAndFind`](/documentation/AppKit/NSFindPanelAction/replaceAndFind)

Replaces a single query instance and finds the next.

[`NSFindPanelAction.setFindString`](/documentation/AppKit/NSFindPanelAction/setFindString)

Sets the query string to the current selection.

[`NSFindPanelAction.replaceAllInSelection`](/documentation/AppKit/NSFindPanelAction/replaceAllInSelection)

Replaces all query instances within the selection.

[`NSFindPanelAction.selectAll`](/documentation/AppKit/NSFindPanelAction/selectAll)

Selects all query instances in the text view.

[`NSFindPanelAction.selectAllInSelection`](/documentation/AppKit/NSFindPanelAction/selectAllInSelection)

Selects all query instances within the selection.



---

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)