Class

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

@interface NSFormCell : NSActionCell

Overview

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

Topics

Initializers

Initializing an NSFormCell

- initTextCell:

Returns an NSFormCell object initialized with the specified title string.

Asking About a Cell’s Appearance

opaque

A Boolean value indicating whether the title is empty and an opaque bezel is set.

Accessing a Cell’s Title

attributedTitle

The title of the cell as an attributed string.

title

The cell’s title text.

titleAlignment

The alignment of the title.

titleBaseWritingDirection

The default writing direction used to render the form cell’s title.

titleFont

The font used to draw cell’s title.

titleWidth

The width of the title field.

Setting a Keyboard Equivalent

- setTitleWithMnemonic:

Sets the cell title and mnemonic character.

Deprecated

Asking About Placeholder Values

placeholderAttributedString

The cell’s attributed placeholder string.

placeholderString

The cell’s plain text placeholder string.

Sizing for Auto Layout

preferredTextFieldWidth

The preferred text field width.

Instance Methods

- titleWidth:

Returns the width of the title field constrained to the specified size.

Relationships

Inherits From

See Also

Views and Controls

NSForm

An NSForm object is a vertical matrix of NSFormCell objects to implement the fields.

Deprecated
NSMenuItemCell

An object that handles the measurement and display of a single menu item in its encompassing frame.

NSBeginAlertSheet

Creates and runs an alert sheet.

Deprecated
NSBeginCriticalAlertSheet

Creates and runs a critical alert sheet.

Deprecated
NSBeginInformationalAlertSheet

Creates and runs an informational alert sheet.

Deprecated
NSGetAlertPanel

Returns an alert panel.

Deprecated
NSGetCriticalAlertPanel

Returns an alert panel to display a critical message.

Deprecated
NSGetInformationalAlertPanel

Returns an alert panel to display an informational message.

Deprecated
NSReleaseAlertPanel

Disposes of an alert panel.

Deprecated
NSRunAlertPanel

Creates an alert panel.

Deprecated
NSRunCriticalAlertPanel

Creates and runs a critical alert panel.

Deprecated
NSRunInformationalAlertPanel

Creates and runs an informational alert panel.

Deprecated
NSInputManagerDeprecated
NSInputServerDeprecated
NSDisableScreenUpdates

Disables screen updates.

Deprecated
NSEnableScreenUpdates

Enables screen updates.

Deprecated