---
title: NSTextContentType
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nstextcontenttype
---

# NSTextContentType

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

## Declaration

```swift
struct NSTextContentType
```

## Discussion

Discussion Use these constants with the contentType property.

## Topics

### Creating a content type

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

### Defining web addresses

- [URL](appkit/nstextcontenttype/url.md)

### Identifying contacts

- [namePrefix](appkit/nstextcontenttype/nameprefix.md)
- [name](appkit/nstextcontenttype/name.md)
- [nameSuffix](appkit/nstextcontenttype/namesuffix.md)
- [givenName](appkit/nstextcontenttype/givenname.md)
- [middleName](appkit/nstextcontenttype/middlename.md)
- [familyName](appkit/nstextcontenttype/familyname.md)
- [nickname](appkit/nstextcontenttype/nickname.md)
- [organizationName](appkit/nstextcontenttype/organizationname.md)
- [jobTitle](appkit/nstextcontenttype/jobtitle.md)

### Setting location data

- [location](appkit/nstextcontenttype/location.md)
- [fullStreetAddress](appkit/nstextcontenttype/fullstreetaddress.md)
- [streetAddressLine1](appkit/nstextcontenttype/streetaddressline1.md)
- [streetAddressLine2](appkit/nstextcontenttype/streetaddressline2.md)
- [addressCity](appkit/nstextcontenttype/addresscity.md)
- [addressCityAndState](appkit/nstextcontenttype/addresscityandstate.md)
- [addressState](appkit/nstextcontenttype/addressstate.md)
- [postalCode](appkit/nstextcontenttype/postalcode.md)
- [sublocality](appkit/nstextcontenttype/sublocality.md)
- [countryName](appkit/nstextcontenttype/countryname.md)

### Managing accounts

- [username](appkit/nstextcontenttype/username.md)
- [password](appkit/nstextcontenttype/password.md)
- [newPassword](appkit/nstextcontenttype/newpassword.md)

### Securing accounts

- [oneTimeCode](appkit/nstextcontenttype/onetimecode.md)

### Setting communication details

- [emailAddress](appkit/nstextcontenttype/emailaddress.md)
- [telephoneNumber](appkit/nstextcontenttype/telephonenumber.md)

### Accepting payment

- [creditCardNumber](appkit/nstextcontenttype/creditcardnumber.md)
- [creditCardExpiration](appkit/nstextcontenttype/creditcardexpiration.md)
- [creditCardExpirationMonth](appkit/nstextcontenttype/creditcardexpirationmonth.md)
- [creditCardExpirationYear](appkit/nstextcontenttype/creditcardexpirationyear.md)
- [creditCardSecurityCode](appkit/nstextcontenttype/creditcardsecuritycode.md)
- [creditCardType](appkit/nstextcontenttype/creditcardtype.md)
- [creditCardName](appkit/nstextcontenttype/creditcardname.md)
- [creditCardGivenName](appkit/nstextcontenttype/creditcardgivenname.md)
- [creditCardMiddleName](appkit/nstextcontenttype/creditcardmiddlename.md)
- [creditCardFamilyName](appkit/nstextcontenttype/creditcardfamilyname.md)

### Getting birthday information

- [birthdate](appkit/nstextcontenttype/birthdate.md)
- [birthdateDay](appkit/nstextcontenttype/birthdateday.md)
- [birthdateMonth](appkit/nstextcontenttype/birthdatemonth.md)
- [birthdateYear](appkit/nstextcontenttype/birthdateyear.md)

### Scheduling events

- [dateTime](appkit/nstextcontenttype/datetime.md)

### Tracking events

- [flightNumber](appkit/nstextcontenttype/flightnumber.md)
- [shipmentTrackingNumber](appkit/nstextcontenttype/shipmenttrackingnumber.md)

## Relationships

### Conforms To

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

## See Also

### Specifying content type

- [contentType](appkit/nstextcontent/contenttype.md)
