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

# NSSliderAccessoryBehavior

```
@MainActor class NSSliderAccessoryBehavior
```

## Topics

### Initializers

[`+  behaviorWithHandler:`](/documentation/AppKit/NSSliderAccessoryBehavior/init(handler:))

The handler block is invoked on interaction.

[`+  behaviorWithTarget:action:`](/documentation/AppKit/NSSliderAccessoryBehavior/init(target:action:))

The action is sent to the target on interaction.

### Type Properties

[`automaticBehavior`](/documentation/AppKit/NSSliderAccessoryBehavior/automatic)

The behavior is automatically picked to be the system standard, given the slider’s current context.

[`valueResetBehavior`](/documentation/AppKit/NSSliderAccessoryBehavior/valueReset)

The value of the slider is reset to the associated value for the accessory.

[`valueStepBehavior`](/documentation/AppKit/NSSliderAccessoryBehavior/valueStep)

The value of the slider moves towards the associated value for the accessory with by a delta of the slider’s `altIncrementValue`.

### Instance Methods

[`-  handleAction:`](/documentation/AppKit/NSSliderAccessoryBehavior/handleAction(_:))

Override point for custom subclasses to handle interaction.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Sendable`](/documentation/Swift/Sendable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

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

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)