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

# NSScrubberSelectionStyle

An abstract class that provides decorative accessory views for selected and highlighted items within a scrubber control.

```
@MainActor class NSScrubberSelectionStyle
```

## Overview

Choose a selection style ([`outlineOverlay`](/documentation/AppKit/NSScrubberSelectionStyle/outlineOverlay) or [`roundedBackground`](/documentation/AppKit/NSScrubberSelectionStyle/roundedBackground)), or create a custom selection style by subclassing [`NSScrubberSelectionStyle`](/documentation/AppKit/NSScrubberSelectionStyle) and overriding [`makeSelectionView()`](/documentation/AppKit/NSScrubberSelectionStyle/makeSelectionView()).

## Topics

### Using built-in styles

[`outlineOverlay`](/documentation/AppKit/NSScrubberSelectionStyle/outlineOverlay)

A built-in selection style that draws the outline of the scrubber item.

[`roundedBackground`](/documentation/AppKit/NSScrubberSelectionStyle/roundedBackground)

A built-in selection style that draws a rounded rectangle as the background of the scrubber item.

### Creating a selection style

[`init()`](/documentation/AppKit/NSScrubberSelectionStyle/init())

Initializes a new scrubber selection style.

[`init(coder:)`](/documentation/AppKit/NSScrubberSelectionStyle/init(coder:))

Initializes a scrubber selection style when included from a nib or Storyboard.

[`makeSelectionView()`](/documentation/AppKit/NSScrubberSelectionStyle/makeSelectionView())

Provides an opportunity to create a customized scrubber selection style.



---

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)