Using Multiple NSTextViews
A single NSLayoutManager can be assigned any number of NSTextContainers, in whose NSTextViews it lays out text sequentially. In such a configuration, many of the attributes accessed through the NSTextView interface are actually shared by all of these text views. Among these attributes are:
Whether they act as a field editor
Whether they display plain or rich text
Whether they import graphics
Whether they use the ruler
Whether the ruler is visible
Whether they use the Font panel (Fonts window)
Setting any of these attributes causes all associated NSTextView objects to share the new value.
With multiple NSTextViews, only one is the first responder at any time. NSLayoutManager defines these methods for determining and appropriately setting the first responder:
See their descriptions in the NSLayoutManager class specification for more information.
© 1997, 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-09-19)