NSLayoutManager
NSLayoutManager is a class in Apple's Text Kit framework that coordinates the layout and rendering of text. It sits between NSTextStorage, which holds the underlying characters and attributes, and NSTextContainer, which defines the region where text is laid out. An NSLayoutManager can manage multiple NSTextContainers, allowing text to be laid out across several regions or views.
Its responsibilities include creating and mapping glyphs from characters, laying out lines, handling hyphenation and justification,
Interaction with the system is provided through the NSLayoutManagerDelegate protocol, which enables customization of layout behavior
Typical usage: a single layout manager can back a NSTextView or other views; multiple text containers can
History: NSLayoutManager was introduced with Text Kit in OS X 10.8 and iOS 7 and remains a