---
title: NSTextLayoutManagerDelegate
framework: appkit
role: symbol
role_heading: Protocol
path: appkit/nstextlayoutmanagerdelegate
---

# NSTextLayoutManagerDelegate

Optional methods that delegates implement to respond to layout changes.

## Declaration

```swift
protocol NSTextLayoutManagerDelegate : NSObjectProtocol
```

## Topics

### Responding to layout changes

- [textLayoutManager(_:renderingAttributesForLink:at:defaultAttributes:)](appkit/nstextlayoutmanagerdelegate/textlayoutmanager(_:renderingattributesforlink:at:defaultattributes:).md)
- [textLayoutManager(_:shouldBreakLineBefore:hyphenating:)](appkit/nstextlayoutmanagerdelegate/textlayoutmanager(_:shouldbreaklinebefore:hyphenating:).md)
- [textLayoutManager(_:textLayoutFragmentFor:in:)](appkit/nstextlayoutmanagerdelegate/textlayoutmanager(_:textlayoutfragmentfor:in:).md)

### Instance Methods

- [textLayoutManager(_:cacheTextAttachmentViewProvider:for:)](appkit/nstextlayoutmanagerdelegate/textlayoutmanager(_:cachetextattachmentviewprovider:for:).md)
- [textLayoutManager(_:retrieveCachedTextAttachmentViewProviderFor:)](appkit/nstextlayoutmanagerdelegate/textlayoutmanager(_:retrievecachedtextattachmentviewproviderfor:).md)
- [textLayoutManager(_:textViewportLayoutControllerFor:)](appkit/nstextlayoutmanagerdelegate/textlayoutmanager(_:textviewportlayoutcontrollerfor:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Managing the layout process

- [delegate](appkit/nstextlayoutmanager/delegate.md)
