---
title: NSSliderCell
framework: appkit
role: symbol
role_heading: Class
path: appkit/nsslidercell
---

# NSSliderCell

The appearance and behavior of an NSSlider object.

## Declaration

```swift
class NSSliderCell
```

## Overview

Overview You can customize an NSSliderCell to a certain degree, using its properties. If this doesn’t give you sufficient flexibility, you can create a subclass. In that subclass, you can override any of the following methods: knobRect(flipped:), drawBar(inside:flipped:), drawKnob(_:), and prefersTrackingUntilMouseUp.

## Topics

### Managing Cell Behavior

- [altIncrementValue](appkit/nsslidercell/altincrementvalue.md)
- [prefersTrackingUntilMouseUp](appkit/nsslidercell/preferstrackinguntilmouseup.md)
- [trackRect](appkit/nsslidercell/trackrect.md)

### Managing the Slider Type

- [sliderType](appkit/nsslidercell/slidertype.md)

### Displaying the Cell

- [barRect(flipped:)](appkit/nsslidercell/barrect(flipped:).md)
- [drawTickMarks()](appkit/nsslidercell/drawtickmarks().md)
- [knobRect(flipped:)](appkit/nsslidercell/knobrect(flipped:).md)
- [drawBar(inside:flipped:)](appkit/nsslidercell/drawbar(inside:flipped:).md)
- [drawKnob()](appkit/nsslidercell/drawknob().md)
- [drawKnob(_:)](appkit/nsslidercell/drawknob(_:).md)

### Managing Cell Appearance

- [knobThickness](appkit/nsslidercell/knobthickness.md)
- [isVertical](appkit/nsslidercell/isvertical.md)

### Managing Value Limits

- [maxValue](appkit/nsslidercell/maxvalue.md)
- [minValue](appkit/nsslidercell/minvalue.md)

### Managing Tick Marks

- [allowsTickMarkValuesOnly](appkit/nsslidercell/allowstickmarkvaluesonly.md)
- [closestTickMarkValue(toValue:)](appkit/nsslidercell/closesttickmarkvalue(tovalue:).md)
- [indexOfTickMark(at:)](appkit/nsslidercell/indexoftickmark(at:).md)
- [numberOfTickMarks](appkit/nsslidercell/numberoftickmarks.md)
- [rectOfTickMark(at:)](appkit/nsslidercell/rectoftickmark(at:).md)
- [tickMarkPosition](appkit/nsslidercell/tickmarkposition.md)
- [tickMarkValue(at:)](appkit/nsslidercell/tickmarkvalue(at:).md)

### Constants

- [NSSlider.TickMarkPosition](appkit/nsslider/tickmarkposition-swift.enum.md)
- [NSSlider.SliderType](appkit/nsslider/slidertype-swift.enum.md)

## Relationships

### Inherits From

- [NSActionCell](appkit/nsactioncell.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSAccessibilityElementProtocol](appkit/nsaccessibilityelementprotocol.md)
- [NSAccessibilityProtocol](appkit/nsaccessibilityprotocol.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSUserInterfaceItemIdentification](appkit/nsuserinterfaceitemidentification.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
