---
title: NSFormCell
framework: appkit
role: symbol
role_heading: Class
path: appkit/nsformcell
---

# NSFormCell

The NSFormCell class is used to implement text entry fields in a form. The left part of an NSFormCell object contains a title. The right part contains an editable text entry field.

## Declaration

```swift
class NSFormCell
```

## Overview

Overview An NSFormCell object implements the user interface of an NSForm object.

## Topics

### Initializers

- [init(coder:)](appkit/nsformcell/init(coder:).md)

### Initializing an NSFormCell

- [init(textCell:)](appkit/nsformcell/init(textcell:).md)

### Asking About a Cell’s Appearance

- [isOpaque](appkit/nsformcell/isopaque.md)

### Accessing a Cell’s Title

- [attributedTitle](appkit/nsformcell/attributedtitle.md)
- [title](appkit/nsformcell/title.md)
- [titleAlignment](appkit/nsformcell/titlealignment.md)
- [titleBaseWritingDirection](appkit/nsformcell/titlebasewritingdirection.md)
- [titleFont](appkit/nsformcell/titlefont.md)
- [titleWidth](appkit/nsformcell/titlewidth.md)

### Asking About Placeholder Values

- [placeholderAttributedString](appkit/nsformcell/placeholderattributedstring.md)
- [placeholderString](appkit/nsformcell/placeholderstring.md)

### Sizing for Auto Layout

- [preferredTextFieldWidth](appkit/nsformcell/preferredtextfieldwidth.md)

### Instance Methods

- [titleWidth(_:)](appkit/nsformcell/titlewidth(_:).md)

## Relationships

### Inherits From

- [NSActionCell](appkit/nsactioncell.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSAccessibilityElementProtocol](appkit/nsaccessibilityelementprotocol.md)
- [NSAccessibilityProtocol](appkit/nsaccessibilityprotocol.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSUserInterfaceItemIdentification](appkit/nsuserinterfaceitemidentification.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Classes

- [NSOpenGLView](appkit/nsopenglview.md)
- [NSOpenGLContext](appkit/nsopenglcontext.md)
- [NSOpenGLLayer](appkit/nsopengllayer.md)
- [NSOpenGLPixelFormat](appkit/nsopenglpixelformat.md)
- [NSDrawer](appkit/nsdrawer.md)
- [NSForm](appkit/nsform.md)
- [NSMenuItemCell](appkit/nsmenuitemcell.md)
