Contents

textContainerChangedGeometry(_:)

Invalidates the layout information, and possibly glyphs, for the specified text container and all subsequent text container objects.

Declaration

func textContainerChangedGeometry(_ container: NSTextContainer)

Parameters

  • container:

    The text container whose layout is invalidated.

Discussion

This method is invoked automatically by other components of the text system; you should rarely need to invoke it directly. Subclasses of NSTextContainer, however, must invoke this method any time their size of shape changes (a text container that dynamically adjusts its shape to wrap text around placed graphics, for example, must do so when a graphic is added, moved, or removed).

See Also

Managing the text containers