<!--
{
  "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

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

Displays the find panel.

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

Finds the next instance of the queried text.

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

Finds the previous instance of the queried text.

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

Replaces all query instances within the text view.

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

Replaces a single query instance within the text view.

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

Replaces a single query instance and finds the next.

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

Sets the query string to the current selection.

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

Replaces all query instances within the selection.

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

Selects all query instances in the text view.

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

Selects all query instances within the selection.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)