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

# maxValue

The maximum value the slider can send to its target.

```
var maxValue: Double { get set }
```

## Discussion

A horizontal slider sends its maximum value when the knob is at the right end of the slider; a vertical slider sends it when the knob is at the top. The maximum selectable value for a circular slider is just below [`maxValue`](/documentation/AppKit/NSSliderCell/maxValue); for example, if [`maxValue`](/documentation/AppKit/NSSliderCell/maxValue) is 360, you can set the dial up to 359.999.

---

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)