The NSScroll class is the central coordinator for the Application Kit’s scrolling machinery, composed of this class, and the NSClip, and NSScroller classes. A scroll view displays a portion of a document view that’s too large to be displayed whole and provides scroll bars that allow the user to move the document view within the scroll view.
Language
- Swift
- Objective-C
SDK
- macOS 10.0+
Overview
Note that, when using an NSClip object within an scroll view (the usual configuration), you should issue messages that control background drawing state to the scroll view directly, rather than messaging the clip view.