---
title: textSelectionDataSource
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextselectionmanager/textselectiondatasource
---

# textSelectionDataSource

The data source that provides text layout information to the selection manager.

## Declaration

```swift
weak var textSelectionDataSource: (any NSTextSelectionDataSource)? { get set }
```

## Discussion

Discussion The data source is typically an NSTextLayoutManager or similar text layout object.
