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

# contentType

The semantic meaning for a text input area.

```
var contentType: NSTextContentType? { get set }
```

## Discussion

Use this property to give the system information about the expected semantic meaning for the content that people enter. For example, you might specify [`emailAddress`](/documentation/AppKit/NSTextContentType/emailAddress) for a text field that people fill in to receive an email confirmation.

For possible values you can use, see [`NSTextContentType`](/documentation/AppKit/NSTextContentType); by default, the value of this property is `nil`.

---

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)