---
title: drawParts
framework: AppKit
role: symbol
role_heading: Instance Method
platforms: [macOS 10.0+]
path: appkit/nsscroller/drawparts
---

# drawParts

Caches images for the scroll buttons and knob.

## Declaration

```occ
- (void) drawParts;
```

## Discussion

Discussion It’s invoked only once when the scroller is created. You may want to override this method if you alter the look of the scroller, but you should never invoke it directly.

## See Also

### Deprecated methods

- [scrollerWidth](appkit/nsscroller/scrollerwidth.md)
- [scrollerWidthForControlSize:](appkit/nsscroller/scrollerwidthforcontrolsize:.md)
- [setFloatValue:knobProportion:](appkit/nsscroller/setfloatvalue:knobproportion:.md)
- [drawArrow(_:highlight:)](appkit/nsscroller/drawarrow(_:highlight:).md)
- [highlight(_:)](appkit/nsscroller/highlight(_:).md)
- [trackScrollButtons(with:)](appkit/nsscroller/trackscrollbuttons(with:).md)
