Protocol

NSLayoutManagerDelegate

A set of optional methods implemented by delegates of NSLayoutManager objects.

Topics

Invalidating Glyphs and Layout

func layoutManagerDidInvalidateLayout(NSLayoutManager)

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

func layoutManager(NSLayoutManager, shouldUse: NSLayoutManager.ControlCharacterAction, forControlCharacterAt: Int)

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

Handling Layout for Text Containers

func layoutManager(NSLayoutManager, didCompleteLayoutFor: NSTextContainer?, atEnd: Bool)

Informs the delegate that the given layout manager has finished laying out text in the given text container.

func layoutManager(NSLayoutManager, textContainer: NSTextContainer, didChangeGeometryFrom: CGSize)

Sent right before the layout manager invalidates layout due to the text container changing geometry.

Managing Temporary Attribute Support

Relationships

Inherits From

See Also

Layout

class NSLayoutManager

An object that coordinates the layout and display of characters held in an NSTextStorage object.

protocol NSTextLayoutOrientationProvider

A set of methods that define the orientation of text for an object.