Instance Method

layoutManager:shouldUseAction:forControlCharacterAtIndex:

Returns the control character action for the control character at the given character index.

Declaration

- (NSControlCharacterAction)layoutManager:(NSLayoutManager *)layoutManager shouldUseAction:(NSControlCharacterAction)action forControlCharacterAtIndex:(NSUInteger)charIndex;

Parameters

layoutManager

The layout manager doing the layout.

action

The proposed control character action for the character at the given index. Possible values are enumerated by NSControlCharacterAction.

charIndex

The index of the control character for which the action is proposed.

Return Value

The control character action for the control character at the given index.

See Also

Invalidating Glyphs and Layout

- layoutManagerDidInvalidateLayout:

Informs the delegate that the given layout manager has invalidated layout information (not glyph information).

- layoutManager:shouldGenerateGlyphs:properties:characterIndexes:font:forGlyphRange:

Enables customization of the initial glyph generation process.

NSControlCharacterAction

Actions caused by control characters.