Scroll the pane — on macOS this whole thing is a scroller, not a scrollbar
Scroll View (Scroller)
/ NSScrollView · NSScroller /
also called scrolling view, scroll container, scrollbar, NSScroller
A scroll view is a viewport onto content larger than the visible region. AppKit calls the bar at its edge a scroller: its draggable thumb is the knob and the track behind it is the knob slot. Modern overlay scrollers float above content and fade away, while legacy scrollers reserve permanent layout space.
Anatomy — every part, named
- 1Scroller
NSScrollerThe control most people call a scrollbar is formally a scroller in AppKit.
- 2Scroller knob (thumb)
NSScroller.knobProportion“The little thumb you drag” is the scroller knob; its length reflects how much content is visible.
- 3Knob slot (track)
NSScroller.drawKnobSlot(in:highlight:)The channel behind the knob is the knob slot, commonly called the scrollbar track.
- 4Overlay vs. legacy scroller
NSScroller.StyleAn overlay scroller fades over the content; a legacy scroller stays visible and takes up layout space.
Prompt — paste into your agent
Use a native Scroll View (NSScrollView; SwiftUI: ScrollView). In AppKit, call the edge control an NSScroller, with its draggable knob inside the knob slot; respect NSScroller.Style overlay versus legacy and preserve native scroll elasticity at the content boundaries.
In code
The exact names this thing goes by in code — each row is one framework’s word for it. Use the row that matches your project (or paste it into your prompt).
| AppKit | NSScrollView | |
| AppKit | NSScroller | |
| SwiftUI | ScrollView | |
| AppKit | NSClipView |