---
title: NSTextFinder.Action
framework: appkit
role: symbol
role_heading: Enumeration
path: appkit/nstextfinder/action
---

# NSTextFinder.Action

These constants specify the user interface item tags that correspond find action. These constants are passed to the performTextFinderAction(_:) method, the responder will call the appropriate method for the tag. That method will, in turn, determine the desired action and invoke the appropriate method in the NSTextFinder object’s NSTextFinderClient protocol.

## Declaration

```swift
enum Action
```

## Topics

### Constants

- [NSTextFinder.Action.showFindInterface](appkit/nstextfinder/action/showfindinterface.md)
- [NSTextFinder.Action.nextMatch](appkit/nstextfinder/action/nextmatch.md)
- [NSTextFinder.Action.previousMatch](appkit/nstextfinder/action/previousmatch.md)
- [NSTextFinder.Action.replaceAll](appkit/nstextfinder/action/replaceall.md)
- [NSTextFinder.Action.replace](appkit/nstextfinder/action/replace.md)
- [NSTextFinder.Action.replaceAndFind](appkit/nstextfinder/action/replaceandfind.md)
- [NSTextFinder.Action.setSearchString](appkit/nstextfinder/action/setsearchstring.md)
- [NSTextFinder.Action.replaceAllInSelection](appkit/nstextfinder/action/replaceallinselection.md)
- [NSTextFinder.Action.selectAll](appkit/nstextfinder/action/selectall.md)
- [NSTextFinder.Action.selectAllInSelection](appkit/nstextfinder/action/selectallinselection.md)
- [NSTextFinder.Action.hideFindInterface](appkit/nstextfinder/action/hidefindinterface.md)
- [NSTextFinder.Action.showReplaceInterface](appkit/nstextfinder/action/showreplaceinterface.md)
- [NSTextFinder.Action.hideReplaceInterface](appkit/nstextfinder/action/hidereplaceinterface.md)

### Initializers

- [init(rawValue:)](appkit/nstextfinder/action/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [Text Finder Options For The Pasteboard](appkit/text-finder-options-for-the-pasteboard.md)
- [NSTextFinder.MatchingType](appkit/nstextfinder/matchingtype.md)
