NSTextContainer class defines a region where text is laid out. An
NSTextContainer to determine where to break lines, lay out portions of text, and so on. An
NSTextContainer object normally defines rectangular regions, but you can define exclusion paths inside the text container to create regions where text does not flow. You can also subclass to create text containers with nonrectangular regions, such as circular regions, regions with holes in them, or regions that flow alongside graphics.
- iOS 7.0+
- macOS 10.0+
- tvOS 7.0+
Instances of the
NSTextStorage classes can be accessed from threads other than the main thread as long as the app guarantees access from only one thread at a time.