---
title: NSScrubberSelectionStyle
framework: appkit
role: symbol
role_heading: Class
path: appkit/nsscrubberselectionstyle
---

# NSScrubberSelectionStyle

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

## Declaration

```swift
@MainActor class NSScrubberSelectionStyle
```

## Overview

Overview Choose a selection style (outlineOverlay or roundedBackground), or create a custom selection style by subclassing NSScrubberSelectionStyle and overriding makeSelectionView().

## Topics

### Using built-in styles

- [outlineOverlay](appkit/nsscrubberselectionstyle/outlineoverlay.md)
- [roundedBackground](appkit/nsscrubberselectionstyle/roundedbackground.md)

### Creating a selection style

- [init()](appkit/nsscrubberselectionstyle/init().md)
- [init(coder:)](appkit/nsscrubberselectionstyle/init(coder:).md)
- [makeSelectionView()](appkit/nsscrubberselectionstyle/makeselectionview().md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Scrubber items

- [NSScrubberItemView](appkit/nsscrubberitemview.md)
- [NSScrubberArrangedView](appkit/nsscrubberarrangedview.md)
- [NSScrubberImageItemView](appkit/nsscrubberimageitemview.md)
- [NSScrubberSelectionView](appkit/nsscrubberselectionview.md)
- [NSScrubberTextItemView](appkit/nsscrubbertextitemview.md)
