<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextInputTraits",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTextInputTraits"
  },
  "title" : "NSTextInputTraits"
}
-->

# NSTextInputTraits

```
protocol NSTextInputTraits
```

## Topics

### Instance Properties

[`var autocorrectionType: NSTextInputTraitType`](/documentation/AppKit/NSTextInputTraits/autocorrectionType)

[`var dataDetectionType: NSTextInputTraitType`](/documentation/AppKit/NSTextInputTraits/dataDetectionType)

[`var grammarCheckingType: NSTextInputTraitType`](/documentation/AppKit/NSTextInputTraits/grammarCheckingType)

[`var inlinePredictionType: NSTextInputTraitType`](/documentation/AppKit/NSTextInputTraits/inlinePredictionType)

[`var linkDetectionType: NSTextInputTraitType`](/documentation/AppKit/NSTextInputTraits/linkDetectionType)

[`var smartDashesType: NSTextInputTraitType`](/documentation/AppKit/NSTextInputTraits/smartDashesType)

[`var smartInsertDeleteType: NSTextInputTraitType`](/documentation/AppKit/NSTextInputTraits/smartInsertDeleteType)

[`var smartQuotesType: NSTextInputTraitType`](/documentation/AppKit/NSTextInputTraits/smartQuotesType)

[`var spellCheckingType: NSTextInputTraitType`](/documentation/AppKit/NSTextInputTraits/spellCheckingType)

[`var textCompletionType: NSTextInputTraitType`](/documentation/AppKit/NSTextInputTraits/textCompletionType)

[`var textReplacementType: NSTextInputTraitType`](/documentation/AppKit/NSTextInputTraits/textReplacementType)

### Instance Properties

[`var allowedWritingToolsResultOptions: NSWritingToolsResultOptions`](/documentation/AppKit/NSTextInputTraits/allowedWritingToolsResultOptions)

[`var mathExpressionCompletionType: NSTextInputTraitType`](/documentation/AppKit/NSTextInputTraits/mathExpressionCompletionType)

[`var writingToolsBehavior: NSWritingToolsBehavior`](/documentation/AppKit/NSTextInputTraits/writingToolsBehavior)

## Relationships

### Inherited By

[`NSTextCheckingClient`](/documentation/AppKit/NSTextCheckingClient)

---

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)