---
title: NSTableViewDiffableDataSource.CellProvider
framework: appkit
role: symbol
role_heading: Type Alias
path: appkit/nstableviewdiffabledatasource-c5gl/cellprovider
---

# NSTableViewDiffableDataSource.CellProvider

A closure that configures and returns a cell for a table view from its diffable data source.

## Declaration

```swift
typealias CellProvider = (NSTableView, NSTableColumn, Int, ItemIdentifierType) -> NSView
```

## See Also

### Creating a Diffable Data Source

- [init(tableView:cellProvider:)](appkit/nstableviewdiffabledatasource-c5gl/init(tableview:cellprovider:).md)
