Instance Property

usesSingleLineMode

A Boolean value indicating whether the cell restricts layout and rendering of text to a single line.

Declaration

@property BOOL usesSingleLineMode;

Discussion

When the value of this property is YES, text layout and rendering is restricted to a single line. In addition, the cell ignores the return value from wraps, interprets NSLineBreakByWordWrapping and NSLineBreakByCharWrapping returned by lineBreakMode as NSLineBreakByClipping, and configures the field editor to ignore key binding commands that insert paragraph and line separators.

The field editor bound to a single-line cell filters out paragraph and line separator insertion from user actions. Cells in single-line mode use the fixed baseline layout. The text baseline position is determined solely by the control size regardless of content font style or size.

See Also

Editing and Selecting Text

- editWithFrame:inView:editor:delegate:event:

Begins editing of the receiver’s text using the specified field editor.

- selectWithFrame:inView:editor:delegate:start:length:

Selects the specified text range in the cell's field editor.

sendsActionOnEndEditing

A Boolean value indicating whether the cell’s control object sends its action message when the user finishes editing the cell’s text.

- endEditing:

Ends the editing of text in the receiver using the specified field editor.

wantsNotificationForMarkedText

A Boolean value indicating whether the cell’s field editor should post text change notifications.

- fieldEditorForView:

Returns a custom field editor for editing in the view.