Up

# NSLayoutManager class documentation

### Authors

Generated by root

### Contents -

1. Software documentation for the NSLayoutManager class
2. Software documentation for the NSLayoutManager(drawing) category
3. Software documentation for the NSLayoutManager(layout) category
4. Software documentation for the NSLayoutManager(temporaryattributes) category

# Software documentation for the NSLayoutManager class

## NSLayoutManager : GSLayoutManager

> Declared in:
>   AppKit/NSLayoutManager.h

Availability: OpenStep
Description forthcoming.

Instance Variables
Method summary

- -attachmentSizeForGlyphAtIndex:
- -drawBackgroundForGlyphRange:atPoint:
- -drawGlyphsForGlyphRange:atPoint:
- -drawUnderlineForGlyphRange:underlineType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:
- -showAttachmentCell:inRect:characterIndex:
- -underlineGylphRange:underlineType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:
- -allowsNonContiguousLayout
- -boundingRectForGlyphRange:inTextContainer:
- -characterIndexMoving:fromCharacterIndex:originalCharacterIndex:distance:
- -ensureGlyphsForCharacterRange:
- -ensureGlyphsForGlyphRange:
- -ensureLayoutForBoundingRect:inTextContainer:
- -ensureLayoutForCharacterRange:
- -ensureLayoutForGlyphRange:
- -ensureLayoutForTextContainer:
- -glyphIndexForPoint:inTextContainer:
- -glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph:
- -glyphRangeForBoundingRect:inTextContainer:
- -glyphRangeForBoundingRectWithoutAdditionalLayout:inTextContainer:
- -hasNonContiguousLayout
- -insertionPointRectForCharacterIndex:inTextContainer:
- -invalidateGlyphsOnLayoutInvalidationForGlyphRange:
- -invalidateLayoutForCharacterRange:actualCharacterRange:
- -locationForGlyphAtIndex:
- -rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount:
- -rectArrayForGlyphRange:withinSelectedGlyphRange:inTextContainer:rectCount:
- -setAllowsNonContiguousLayout:
- -textContainerChangedTextView:
- -addTemporaryAttribute:value:forCharacterRange:
- -addTemporaryAttributes:forCharacterRange:
- -removeTemporaryAttribute:forCharacterRange:
- -setTemporaryAttributes:forCharacterRange:
- -temporaryAttribute:atCharacterIndex:effectiveRange:
- -temporaryAttribute:atCharacterIndex:longestEffectiveRange:inRange:
- -temporaryAttributesAtCharacterIndex:effectiveRange:
- -temporaryAttributesAtCharacterIndex:longestEffectiveRange:inRange:
- -firstTextView
- -hyphenationFactor
- -invalidateDisplayForCharacterRange:
- -invalidateDisplayForGlyphRange:
- -layoutManagerOwnsFirstResponderInWindow:
- -rulerAccessoryViewForTextView:paragraphStyle:ruler:enabled:
- -rulerMarkersForTextView:paragraphStyle:ruler:
- -setHyphenationFactor:
- -textViewForBeginningOfSelection

### firstTextView

- (NSTextView*) firstTextView;
Availability: OpenStep
Description forthcoming.

### hyphenationFactor

- (float) hyphenationFactor;
Availability: OpenStep
Description forthcoming.

### invalidateDisplayForCharacterRange:

- (void) invalidateDisplayForCharacterRange: (NSRange)aRange;
Availability: OpenStep
Description forthcoming.

### invalidateDisplayForGlyphRange:

- (void) invalidateDisplayForGlyphRange: (NSRange)aRange;
Availability: OpenStep
Description forthcoming.

### layoutManagerOwnsFirstResponderInWindow:

- (BOOL) layoutManagerOwnsFirstResponderInWindow: (NSWindow*)window;
Availability: OpenStep
Description forthcoming.

### rulerAccessoryViewForTextView: paragraphStyle: ruler: enabled:

- (NSView*) rulerAccessoryViewForTextView: (NSTextView*)textView paragraphStyle: (NSParagraphStyle*)style ruler: (NSRulerView*)ruler enabled: (BOOL)isEnabled;
Availability: OpenStep
Description forthcoming.

### rulerMarkersForTextView: paragraphStyle: ruler:

- (NSArray*) rulerMarkersForTextView: (NSTextView*)textView paragraphStyle: (NSParagraphStyle*)paragraphStyle ruler: (NSRulerView*)aRulerView;
Availability: OpenStep
Description forthcoming.

### setHyphenationFactor:

- (void) setHyphenationFactor: (float)factor;
Availability: OpenStep
Description forthcoming.

### textViewForBeginningOfSelection

- (NSTextView*) textViewForBeginningOfSelection;
Availability: OpenStep
Description forthcoming.

## Instance Variables for NSLayoutManager Class

### _beganEditing

@public BOOL _beganEditing;
Availability: OpenStep
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.

### _isSynchronizingDelegates

@public BOOL _isSynchronizingDelegates;
Availability: OpenStep
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.

### _isSynchronizingFlags

@public BOOL _isSynchronizingFlags;
Availability: OpenStep
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.

### _original_selected_range

@public NSRange _original_selected_range;
Availability: OpenStep
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.

### _selected_range

@public NSRange _selected_range;
Availability: OpenStep
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.

### _selectionAffinity

@public NSSelectionAffinity _selectionAffinity;
Availability: OpenStep
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.

### _selectionGranularity

@public NSSelectionGranularity _selectionGranularity;
Availability: OpenStep
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.

### _temporaryAttributes

@public NSMutableAttributedString* _temporaryAttributes;
Availability: OpenStep
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.

### _typingAttributes

@public NSMutableDictionary* _typingAttributes;
Availability: OpenStep
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.

# Software documentation for the NSLayoutManager(drawing) category

## NSLayoutManager(drawing)

> Declared in:
>   AppKit/NSLayoutManager.h

Availability: OpenStep
Description forthcoming.
Method summary

- -attachmentSizeForGlyphAtIndex:
- -drawBackgroundForGlyphRange:atPoint:
- -drawGlyphsForGlyphRange:atPoint:
- -drawUnderlineForGlyphRange:underlineType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:
- -showAttachmentCell:inRect:characterIndex:
- -underlineGylphRange:underlineType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:

### attachmentSizeForGlyphAtIndex:

- (NSSize) attachmentSizeForGlyphAtIndex: (NSUInteger)glyphIndex;
Availability: OpenStep
Description forthcoming.

### drawBackgroundForGlyphRange: atPoint:

- (void) drawBackgroundForGlyphRange: (NSRange)range atPoint: (NSPoint)containerOrigin;
Availability: OpenStep
Drawing

### drawGlyphsForGlyphRange: atPoint:

- (void) drawGlyphsForGlyphRange: (NSRange)range atPoint: (NSPoint)containerOrigin;
Availability: OpenStep
Description forthcoming.

### drawUnderlineForGlyphRange: underlineType: baselineOffset: lineFragmentRect: lineFragmentGlyphRange: containerOrigin:

- (void) drawUnderlineForGlyphRange: (NSRange)underlineRange underlineType: (NSInteger)type baselineOffset: (CGFloat)offset lineFragmentRect: (NSRect)fragmentRect lineFragmentGlyphRange: (NSRange)fragmentGlyphRange containerOrigin: (NSPoint)containerOrigin;
Availability: OpenStep
Description forthcoming.

### showAttachmentCell: inRect: characterIndex:

- (void) showAttachmentCell: (NSCell*)cell inRect: (NSRect)rect characterIndex: (NSUInteger)attachmentIndex;
Availability: OpenStep
Description forthcoming.

### underlineGylphRange: underlineType: lineFragmentRect: lineFragmentGlyphRange: containerOrigin:

- (void) underlineGylphRange: (NSRange)range underlineType: (NSInteger)type lineFragmentRect: (NSRect)fragmentRect lineFragmentGlyphRange: (NSRange)fragmentGlyphRange containerOrigin: (NSPoint)containerOrigin;
Availability: OpenStep
Description forthcoming.

# Software documentation for the NSLayoutManager(layout) category

## NSLayoutManager(layout)

> Declared in:
>   AppKit/NSLayoutManager.h

Availability: OpenStep
Description forthcoming.
Method summary

- -allowsNonContiguousLayout
- -boundingRectForGlyphRange:inTextContainer:
- -characterIndexMoving:fromCharacterIndex:originalCharacterIndex:distance:
- -ensureGlyphsForCharacterRange:
- -ensureGlyphsForGlyphRange:
- -ensureLayoutForBoundingRect:inTextContainer:
- -ensureLayoutForCharacterRange:
- -ensureLayoutForGlyphRange:
- -ensureLayoutForTextContainer:
- -glyphIndexForPoint:inTextContainer:
- -glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph:
- -glyphRangeForBoundingRect:inTextContainer:
- -glyphRangeForBoundingRectWithoutAdditionalLayout:inTextContainer:
- -hasNonContiguousLayout
- -insertionPointRectForCharacterIndex:inTextContainer:
- -invalidateGlyphsOnLayoutInvalidationForGlyphRange:
- -invalidateLayoutForCharacterRange:actualCharacterRange:
- -locationForGlyphAtIndex:
- -rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount:
- -rectArrayForGlyphRange:withinSelectedGlyphRange:inTextContainer:rectCount:
- -setAllowsNonContiguousLayout:
- -textContainerChangedTextView:

### allowsNonContiguousLayout

- (BOOL) allowsNonContiguousLayout;
Availability: MacOS-X 10.5.0
Description forthcoming.

### boundingRectForGlyphRange: inTextContainer:

- (NSRect) boundingRectForGlyphRange: (NSRange)glyphRange inTextContainer: (NSTextContainer*)aTextContainer;
Availability: OpenStep
Description forthcoming.

### characterIndexMoving: fromCharacterIndex: originalCharacterIndex: distance:

- (unsigned int) characterIndexMoving: (GSInsertionPointMovementDirection)direction fromCharacterIndex: (unsigned int)from originalCharacterIndex: (unsigned int)original distance: (float)distance;
Availability: OpenStep
Description forthcoming.

### ensureGlyphsForCharacterRange:

- (void) ensureGlyphsForCharacterRange: (NSRange)charRange;
Availability: MacOS-X 10.5.0
Description forthcoming.

### ensureGlyphsForGlyphRange:

- (void) ensureGlyphsForGlyphRange: (NSRange)glyphRange;
Availability: MacOS-X 10.5.0
Description forthcoming.

### ensureLayoutForBoundingRect: inTextContainer:

- (void) ensureLayoutForBoundingRect: (NSRect)bounds inTextContainer: (NSTextContainer*)container;
Availability: MacOS-X 10.5.0
Description forthcoming.

### ensureLayoutForCharacterRange:

- (void) ensureLayoutForCharacterRange: (NSRange)charRange;
Availability: MacOS-X 10.5.0
Description forthcoming.

### ensureLayoutForGlyphRange:

- (void) ensureLayoutForGlyphRange: (NSRange)glyphRange;
Availability: MacOS-X 10.5.0
Description forthcoming.

### ensureLayoutForTextContainer:

- (void) ensureLayoutForTextContainer: (NSTextContainer*)container;
Availability: MacOS-X 10.5.0
Description forthcoming.

### glyphIndexForPoint: inTextContainer:

- (unsigned int) glyphIndexForPoint: (NSPoint)aPoint inTextContainer: (NSTextContainer*)aTextContainer;
Availability: OpenStep
Description forthcoming.

### glyphIndexForPoint: inTextContainer: fractionOfDistanceThroughGlyph:

- (NSUInteger) glyphIndexForPoint: (NSPoint)point inTextContainer: (NSTextContainer*)container fractionOfDistanceThroughGlyph: (CGFloat*)partialFraction;
Availability: OpenStep
Description forthcoming.

### glyphRangeForBoundingRect: inTextContainer:

- (NSRange) glyphRangeForBoundingRect: (NSRect)bounds inTextContainer: (NSTextContainer*)container;
Availability: OpenStep
Description forthcoming.

### glyphRangeForBoundingRectWithoutAdditionalLayout: inTextContainer:

- (NSRange) glyphRangeForBoundingRectWithoutAdditionalLayout: (NSRect)bounds inTextContainer: (NSTextContainer*)container;
Availability: OpenStep
Description forthcoming.

### hasNonContiguousLayout

- (BOOL) hasNonContiguousLayout;
Availability: MacOS-X 10.5.0
Description forthcoming.

### insertionPointRectForCharacterIndex: inTextContainer:

- (NSRect) insertionPointRectForCharacterIndex: (unsigned int)cindex inTextContainer: (NSTextContainer*)textContainer;
Availability: OpenStep
Description forthcoming.

### invalidateGlyphsOnLayoutInvalidationForGlyphRange:

- (void) invalidateGlyphsOnLayoutInvalidationForGlyphRange: (NSRange)glyphRange;
Availability: MacOS-X 10.5.0
Description forthcoming.

### invalidateLayoutForCharacterRange: actualCharacterRange:

- (void) invalidateLayoutForCharacterRange: (NSRange)charRange actualCharacterRange: (NSRangePointer)actualCharRange;
Availability: MacOS-X 10.5.0
Description forthcoming.

### locationForGlyphAtIndex:

- (NSPoint) locationForGlyphAtIndex: (NSUInteger)glyphIndex;
Availability: OpenStep
Description forthcoming.

### rectArrayForCharacterRange: withinSelectedCharacterRange: inTextContainer: rectCount:

- (NSRect*) rectArrayForCharacterRange: (NSRange)charRange withinSelectedCharacterRange: (NSRange)selCharRange inTextContainer: (NSTextContainer*)container rectCount: (NSUInteger*)rectCount;
Availability: OpenStep
Description forthcoming.

### rectArrayForGlyphRange: withinSelectedGlyphRange: inTextContainer: rectCount:

- (NSRect*) rectArrayForGlyphRange: (NSRange)glyphRange withinSelectedGlyphRange: (NSRange)selGlyphRange inTextContainer: (NSTextContainer*)container rectCount: (NSUInteger*)rectCount;
Availability: OpenStep
Description forthcoming.

### setAllowsNonContiguousLayout:

- (void) setAllowsNonContiguousLayout: (BOOL)flag;
Availability: MacOS-X 10.5.0
Description forthcoming.

### textContainerChangedTextView:

- (void) textContainerChangedTextView: (NSTextContainer*)aContainer;
Availability: OpenStep
Description forthcoming.

# Software documentation for the NSLayoutManager(temporaryattributes) category

## NSLayoutManager(temporaryattributes)

> Declared in:
>   AppKit/NSLayoutManager.h

Availability: OpenStep
Description forthcoming.
Method summary

- -addTemporaryAttribute:value:forCharacterRange:
- -addTemporaryAttributes:forCharacterRange:
- -removeTemporaryAttribute:forCharacterRange:
- -setTemporaryAttributes:forCharacterRange:
- -temporaryAttribute:atCharacterIndex:effectiveRange:
- -temporaryAttribute:atCharacterIndex:longestEffectiveRange:inRange:
- -temporaryAttributesAtCharacterIndex:effectiveRange:
- -temporaryAttributesAtCharacterIndex:longestEffectiveRange:inRange:

### addTemporaryAttribute: value: forCharacterRange:

- (void) addTemporaryAttribute: (NSString*)attr value: (id)value forCharacterRange: (NSRange)range;
Availability: MacOS-X 10.5.0
Description forthcoming.

### addTemporaryAttributes: forCharacterRange:

- (void) addTemporaryAttributes: (NSDictionary*)attrs forCharacterRange: (NSRange)range;
Availability: OpenStep
Description forthcoming.

### removeTemporaryAttribute: forCharacterRange:

- (void) removeTemporaryAttribute: (NSString*)attr forCharacterRange: (NSRange)range;
Availability: OpenStep
Description forthcoming.

### setTemporaryAttributes: forCharacterRange:

- (void) setTemporaryAttributes: (NSDictionary*)attrs forCharacterRange: (NSRange)range;
Availability: OpenStep
Description forthcoming.

### temporaryAttribute: atCharacterIndex: effectiveRange:

- (id) temporaryAttribute: (NSString*)attr atCharacterIndex: (NSUInteger)index effectiveRange: (NSRange*)range;
Availability: MacOS-X 10.5.0
Description forthcoming.

### temporaryAttribute: atCharacterIndex: longestEffectiveRange: inRange:

- (id) temporaryAttribute: (NSString*)attr atCharacterIndex: (NSUInteger)index longestEffectiveRange: (NSRange*)longestRange inRange: (NSRange)range;
Availability: MacOS-X 10.5.0
Description forthcoming.

### temporaryAttributesAtCharacterIndex: effectiveRange:

- (NSDictionary*) temporaryAttributesAtCharacterIndex: (NSUInteger)index effectiveRange: (NSRange*)longestRange;
Availability: OpenStep
Description forthcoming.

### temporaryAttributesAtCharacterIndex: longestEffectiveRange: inRange:

- (NSDictionary*) temporaryAttributesAtCharacterIndex: (NSUInteger)index longestEffectiveRange: (NSRange*)longestRange inRange: (NSRange)range;
Availability: MacOS-X 10.5.0
Description forthcoming.

Up