Instance Method

setUpFieldEditorAttributes:

Configures the textual and background attributes of the receiver's field editor.

Declaration

- (NSText *)setUpFieldEditorAttributes:(NSText *)textObj;

Parameters

textObj

The field editor to configure. .

Return Value

The configured field editor.

Discussion

If the receiver is disabled, this method sets the text color to dark gray; otherwise the method sets it to the default color. If the receiver has a bezeled border, this method sets the background to the default color for text backgrounds; otherwise, the method sets it to the color of the receiver’s NSControl object.

You should not use this method to substitute a new field editor. setUpFieldEditorAttributes: is intended to modify the attributes of the text object (that is, the field editor) passed into it and return that text object. If you want to substitute your own field editor, use the fieldEditor:forObject: method or the windowWillReturnFieldEditor:toObject: delegate method of NSWindow.

See Also

Modifying Textual Attributes

editable

A Boolean value indicating whether the cell is editable.

selectable

A Boolean value indicating whether the cell’s text can be selected.

scrollable

A Boolean value indicating whether excess text scrolls past the cell’s bounds.

alignment

The alignment of the cell’s text.

font

The font that the cell uses to display text.

lineBreakMode

The line break mode to use when drawing text in the cell.

truncatesLastVisibleLine

A Boolean value indicating whether the cell truncates text that does not fit within the cell’s bounds.

wraps

A Boolean value indicating whether the cell wraps text whose length that exceeds the cell’s frame.

baseWritingDirection

The initial writing direction used to determine the actual writing direction for text.

attributedStringValue

The cell’s value as an attributed string.

allowsEditingTextAttributes

A Boolean value indicating whether the cell allows the editing of its content’s text attributes by the user.

importsGraphics

A Boolean value indicating whether the cell supports the importation of images into its text.

title

The cell’s title text.