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

# NSTextContent

A protocol that describes specific kinds of input content types.

```
protocol NSTextContent
```

## Topics

### Specifying content type

[`var contentType: NSTextContentType?`](/documentation/AppKit/NSTextContent/contentType)

The semantic meaning for a text input area.

[`struct NSTextContentType`](/documentation/AppKit/NSTextContentType)

Constants that identify the semantic meaning for a text-entry area.

## Relationships

### Conforming Types

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

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

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

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

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

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

---

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)