<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSScrubberDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSScrubberDelegate"
  },
  "title" : "NSScrubberDelegate"
}
-->

# NSScrubberDelegate

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

```
protocol NSScrubberDelegate : NSObjectProtocol
```

## Topics

### Handling item selection and highlighting

[`-  scrubber:didSelectItemAtIndex:`](/documentation/AppKit/NSScrubberDelegate/scrubber(_:didSelectItemAt:))

Tells the delegate that the item at the specified index was selected.

[`-  scrubber:didHighlightItemAtIndex:`](/documentation/AppKit/NSScrubberDelegate/scrubber(_:didHighlightItemAt:))

Tells the delegate that the item at the specified index was highlighted.

### Handling scrubber scrolling

[`-  scrubber:didChangeVisibleRange:`](/documentation/AppKit/NSScrubberDelegate/scrubber(_:didChangeVisibleRange:))

Tells the delegate that the range of items currently visible in the scrubber has changed.

### Tracking user interaction

[`-  didBeginInteractingWithScrubber:`](/documentation/AppKit/NSScrubberDelegate/didBeginInteracting(with:))

Tells the delegate that the user is panning or scrolling the scrubber.

[`-  didFinishInteractingWithScrubber:`](/documentation/AppKit/NSScrubberDelegate/didFinishInteracting(with:))

Tells the delegate that a pan or scroll interaction with the scrubber has ended.

[`-  didCancelInteractingWithScrubber:`](/documentation/AppKit/NSScrubberDelegate/didCancelInteracting(with:))

Tells the delegate that a user interaction with the scrubber has been canceled.

## Relationships

### Inherited By

[`NSScrubberFlowLayoutDelegate`](/documentation/AppKit/NSScrubberFlowLayoutDelegate)

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)