---
title: "textContainerChangedTextView(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nslayoutmanager/textcontainerchangedtextview(_:)"
---

# textContainerChangedTextView(_:)

Updates the information necessary to manage text view objects for the specified text container.

## Declaration

```swift
func textContainerChangedTextView(_ container: NSTextContainer)
```

## Parameters

- `container`: The text container whose text view has changed.

## Discussion

Discussion This method is called by a text container, whenever its text view changes, to keep notifications synchronized. You should rarely need to invoke it directly.

## See Also

### Managing the text containers

- [textContainers](appkit/nslayoutmanager/textcontainers.md)
- [addTextContainer(_:)](appkit/nslayoutmanager/addtextcontainer(_:).md)
- [insertTextContainer(_:at:)](appkit/nslayoutmanager/inserttextcontainer(_:at:).md)
- [removeTextContainer(at:)](appkit/nslayoutmanager/removetextcontainer(at:).md)
- [setTextContainer(_:forGlyphRange:)](appkit/nslayoutmanager/settextcontainer(_:forglyphrange:).md)
- [textContainerChangedGeometry(_:)](appkit/nslayoutmanager/textcontainerchangedgeometry(_:).md)
- [textContainer(forGlyphAt:effectiveRange:)](appkit/nslayoutmanager/textcontainer(forglyphat:effectiverange:).md)
- [textContainer(forGlyphAt:effectiveRange:withoutAdditionalLayout:)](appkit/nslayoutmanager/textcontainer(forglyphat:effectiverange:withoutadditionallayout:).md)
- [usedRect(for:)](appkit/nslayoutmanager/usedrect(for:).md)
