Protocol

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.

Topics

Getting the Scrubber Metrics

func numberOfItems(for: NSScrubber)

Asks the data source for the number of items in the scrubber.

Required.

Getting Views for Items

func scrubber(NSScrubber, viewForItemAt: Int)

Asks the data source object for the view the corresponds to the specified item in the scrubber.

Required.

Relationships

Inherits From

See Also

Scrubbers

class NSScrubber

A customizable item picker control for the Touch Bar.

protocol NSScrubberDelegate

A set of methods that a scrubber delegate implements to respond to user interactions.