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

# NSTextFinder.MatchingType

The following constants indicate the type of search anchor an action should perform.

```
enum MatchingType
```

## Topics

### Constants

[`NSTextFinder.MatchingType.contains`](/documentation/AppKit/NSTextFinder/MatchingType/contains)

The match contains the string.

[`NSTextFinder.MatchingType.startsWith`](/documentation/AppKit/NSTextFinder/MatchingType/startsWith)

The match begins with the string.

[`NSTextFinder.MatchingType.fullWord`](/documentation/AppKit/NSTextFinder/MatchingType/fullWord)

The match exactly matches the string.

[`NSTextFinder.MatchingType.endsWith`](/documentation/AppKit/NSTextFinder/MatchingType/endsWith)

The match ends with the string.



---

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)