---
title: textField
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscollectionviewitem/textfield
---

# textField

A text field outlet that you can use to display a string.

## Declaration

```swift
@IBOutlet weak var textField: NSTextField? { get set }
```

## Discussion

Discussion This is a convenience property for accessing a text field in your item’s view hierarchy. Normally, you configure this property in Interface Builder by connecting it to one of your item’s text fields.

## See Also

### Getting and Setting Image and Text Fields

- [imageView](appkit/nscollectionviewitem/imageview.md)
