---
title: NSScrubberDataSource
framework: appkit
role: symbol
role_heading: Protocol
path: appkit/nsscrubberdatasource
---

# NSScrubberDataSource

A set of methods that a scrubber data source object implements to provide items to the scrubber from an associated data collection in your app.

## Declaration

```swift
protocol NSScrubberDataSource : NSObjectProtocol
```

## Topics

### Getting the scrubber metrics

- [numberOfItems(for:)](appkit/nsscrubberdatasource/numberofitems(for:).md)

### Getting views for items

- [scrubber(_:viewForItemAt:)](appkit/nsscrubberdatasource/scrubber(_:viewforitemat:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Scrubbers

- [NSScrubber](appkit/nsscrubber.md)
- [NSScrubberDelegate](appkit/nsscrubberdelegate.md)
