Class

NSForm

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

Symbols

Adding and Removing Entries

func addEntry(String)

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

func insertEntry(String, at: Int)

Inserts an entry with the specified title into the receiver.

func removeEntry(at: Int)

Removes and releases the entry at the specified index.

Changing the Appearance of All the Entries

func setBezeled(Bool)

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

func setBordered(Bool)

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

func setEntryWidth(CGFloat)

Sets the width of all the entries in the receiver.

func setFrameSize(NSSize)

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

func setInterlineSpacing(CGFloat)

Sets the spacing between entries

func setTitleAlignment(NSTextAlignment)

Sets the alignment for all of the entry titles.

func setTitleBaseWritingDirection(NSWritingDirection)

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

func setTextAlignment(NSTextAlignment)

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

func setTextBaseWritingDirection(NSWritingDirection)

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

func setTitleFont(NSFont)

Sets the font for all of the entry titles.

func setTextFont(NSFont)

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

Getting Cells and Indices

func indexOfCell(withTag: Int)

Returns the index of the entry whose tag is tag.

func indexOfSelectedItem()

Returns the index of the selected entry.

func cell(at: Int)

Returns the entry at the specified index.

Displaying a Cell

func drawCell(at: Int)

Displays the entry at the specified index.

Auto Layout Sizing

func preferredTextFieldWidth()

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

func setPreferredTextFieldWidth(CGFloat)

Sets the preferred text field width used by Auto Layout.

Editing Text

func selectText(at: Int)

Selects the entry at the specified index.

Relationships

Inherits From

Conforms To