<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.7.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSScroller/scrollerWidth",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSScroller(cm)scrollerWidth"
  },
  "title" : "scrollerWidth"
}
-->

# scrollerWidth

Returns the width for scrollers of the receiving class, assuming a control size [`NSRegularControlSize`](/documentation/AppKit/NSRegularControlSize), and a scroller style of [`NSScroller.Style.legacy`](/documentation/AppKit/NSScroller/Style/legacy).

```
+ (CGFloat) scrollerWidth;
```

## Discussion

`NSScrollView` uses this value to lay out its components. Subclasses that use a different width should override this method.

---

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)