A set of methods that a scrubber delegate implements to respond to user interactions.
SDK
- macOS 10.12.1+
Framework
- App
Kit
Declaration
protocol NSScrubberDelegate
A set of methods that a scrubber delegate implements to respond to user interactions.
SDK
Framework
protocol NSScrubberDelegate
func scrubber(NSScrubber, did Select Item At: Int)
Tells the delegate that the item at the specified index was selected.
func scrubber(NSScrubber, did Highlight Item At: Int)
Tells the delegate that the item at the specified index was highlighted.
func scrubber(NSScrubber, did Change Visible Range: NSRange)
Tells the delegate that the range of items currently visible in the scrubber has changed.
func did Begin Interacting(with: NSScrubber)
Tells the delegate that the user is panning or scrolling the scrubber.
func did Finish Interacting(with: NSScrubber)
Tells the delegate that a pan or scroll interaction with the scrubber has ended.
func did Cancel Interacting(with: NSScrubber)
Tells the delegate that a user interaction with the scrubber has been canceled.
class NSScrubber
A customizable item picker control for the Touch Bar.
protocol NSScrubber Data Source
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.