# NSLayoutManager class documentation

Generated at 2026-06-27 19:09:52 +0000
Software documentation for the NSLayoutManager class
AppKit/NSLayoutManager.h
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
firstTextView
Description forthcoming.
hyphenationFactor
Description forthcoming.
invalidateDisplayForCharacterRange:
aRange
Description forthcoming.
invalidateDisplayForGlyphRange:
aRange
Description forthcoming.
layoutManagerOwnsFirstResponderInWindow:
window
Description forthcoming.
rulerAccessoryViewForTextView:
textView
paragraphStyle:
style
ruler:
ruler
enabled:
isEnabled
Description forthcoming.
rulerMarkersForTextView:
textView
paragraphStyle:
paragraphStyle
ruler:
aRulerView
Description forthcoming.
setHyphenationFactor:
factor
Description forthcoming.
textViewForBeginningOfSelection
Description forthcoming.
Software documentation for the NSLayoutManager(drawing) category
AppKit/NSLayoutManager.h
Description forthcoming.
attachmentSizeForGlyphAtIndex:
glyphIndex
Description forthcoming.
drawBackgroundForGlyphRange:
range
atPoint:
containerOrigin
Drawing
drawGlyphsForGlyphRange:
range
atPoint:
containerOrigin
Description forthcoming.
drawUnderlineForGlyphRange:
underlineRange
underlineType:
type
baselineOffset:
offset
lineFragmentRect:
fragmentRect
lineFragmentGlyphRange:
fragmentGlyphRange
containerOrigin:
containerOrigin
Description forthcoming.
showAttachmentCell:
cell
inRect:
rect
characterIndex:
attachmentIndex
Description forthcoming.
underlineGylphRange:
range
underlineType:
type
lineFragmentRect:
fragmentRect
lineFragmentGlyphRange:
fragmentGlyphRange
containerOrigin:
containerOrigin
Description forthcoming.
Software documentation for the NSLayoutManager(layout) category
AppKit/NSLayoutManager.h
Description forthcoming.
allowsNonContiguousLayout
Description forthcoming.
boundingRectForGlyphRange:
glyphRange
inTextContainer:
aTextContainer
Description forthcoming.
characterIndexMoving:
direction
fromCharacterIndex:
from
originalCharacterIndex:
original
distance:
distance
Description forthcoming.
ensureGlyphsForCharacterRange:
charRange
Description forthcoming.
ensureGlyphsForGlyphRange:
glyphRange
Description forthcoming.
ensureLayoutForBoundingRect:
bounds
inTextContainer:
container
Description forthcoming.
ensureLayoutForCharacterRange:
charRange
Description forthcoming.
ensureLayoutForGlyphRange:
glyphRange
Description forthcoming.
ensureLayoutForTextContainer:
container
Description forthcoming.
glyphIndexForPoint:
aPoint
inTextContainer:
aTextContainer
Description forthcoming.
glyphIndexForPoint:
point
inTextContainer:
container
fractionOfDistanceThroughGlyph:
partialFraction
Description forthcoming.
glyphRangeForBoundingRect:
bounds
inTextContainer:
container
Description forthcoming.
glyphRangeForBoundingRectWithoutAdditionalLayout:
bounds
inTextContainer:
container
Description forthcoming.
hasNonContiguousLayout
Description forthcoming.
insertionPointRectForCharacterIndex:
cindex
inTextContainer:
textContainer
Description forthcoming.
invalidateGlyphsOnLayoutInvalidationForGlyphRange:
glyphRange
Description forthcoming.
invalidateLayoutForCharacterRange:
charRange
actualCharacterRange:
actualCharRange
Description forthcoming.
locationForGlyphAtIndex:
glyphIndex
Description forthcoming.
rectArrayForCharacterRange:
charRange
withinSelectedCharacterRange:
selCharRange
inTextContainer:
container
rectCount:
rectCount
Description forthcoming.
rectArrayForGlyphRange:
glyphRange
withinSelectedGlyphRange:
selGlyphRange
inTextContainer:
container
rectCount:
rectCount
Description forthcoming.
setAllowsNonContiguousLayout:
flag
Description forthcoming.
textContainerChangedTextView:
aContainer
Description forthcoming.
Software documentation for the NSLayoutManager(temporaryattributes) category
AppKit/NSLayoutManager.h
Description forthcoming.
addTemporaryAttribute:
attr
value:
value
forCharacterRange:
range
Description forthcoming.
addTemporaryAttributes:
attrs
forCharacterRange:
range
Description forthcoming.
removeTemporaryAttribute:
attr
forCharacterRange:
range
Description forthcoming.
setTemporaryAttributes:
attrs
forCharacterRange:
range
Description forthcoming.
temporaryAttribute:
attr
atCharacterIndex:
index
effectiveRange:
range
Description forthcoming.
temporaryAttribute:
attr
atCharacterIndex:
index
longestEffectiveRange:
longestRange
inRange:
range
Description forthcoming.
temporaryAttributesAtCharacterIndex:
index
effectiveRange:
range
Description forthcoming.
temporaryAttributesAtCharacterIndex:
index
longestEffectiveRange:
longestRange
inRange:
range
Description forthcoming.