Class

NSForm

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

Declaration

@interface NSForm : NSMatrix

Topics

Adding and Removing Entries

- addEntry:

Adds a new entry to the end of the receiver and gives it the specified title.

- insertEntry:atIndex:

Inserts an entry with the specified title into the receiver.

- removeEntryAtIndex:

Removes and releases the entry at the specified index.

Changing the Appearance of All the Entries

- setBezeled:

Sets whether the receiver's entries should display a bezel around their editable text.

- setBordered:

Sets whether the receiver's entries should display a border around their editable text fields.

- setEntryWidth:

Sets the width of all the entries in the receiver.

- setFrameSize:

Sets the size of the receiver’s frame size to the specified value.

- setInterlineSpacing:

Sets the spacing between entries

- setTitleAlignment:

Sets the alignment for all of the entry titles.

- setTitleBaseWritingDirection:

Sets the writing direction for the title of every control embedded in the form.

- setTextAlignment:

Sets the alignment for all of the receiver’s editable text.

- setTextBaseWritingDirection:

Sets the writing direction for the text content of every control embedded in the form.

- setTitleFont:

Sets the font for all of the entry titles.

- setTextFont:

Sets the font for all of the receiver’s editable text fields

Getting Cells and Indices

- indexOfCellWithTag:

Returns the index of the entry whose tag is tag.

- indexOfSelectedItem

Returns the index of the selected entry.

- cellAtIndex:

Returns the entry at the specified index.

Displaying a Cell

- drawCellAtIndex:

Displays the entry at the specified index.

Auto Layout Sizing

- preferredTextFieldWidth

The preferred width of the form’s cells when using Auto Layout.

- setPreferredTextFieldWidth:

Sets the preferred text field width used by Auto Layout.

Editing Text

- selectTextAtIndex:

Selects the entry at the specified index.

Relationships

Inherits From

See Also

Views and Controls

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.

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