<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFormCell/init(textCell:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFormCell(im)initTextCell:"
  },
  "title" : "init(textCell:)"
}
-->

# init(textCell:)

Returns an `NSFormCell` object initialized with the specified title string.

```
init(textCell string: String?)
```

## Parameters

`string`

The title for the new form cell object.

## Return Value

An initialized `NSFormCell` object.

## Discussion

The contents of the cell’s editable text entry field are set to the empty string (`@""`). The font for both title and text is the user’s chosen system font in 12.0 point, and the text area is drawn with a bezel. This method is the designated initializer for the `NSFormCell` class.

## See Also

  [Form Programming Topics](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Form/Form.html#//apple_ref/doc/uid/10000021i)



---

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)