NSScrollView
A view that displays a portion of a document view and provides scroll bars that allow the user to move the document view within the scroll view.
Declaration
class NSScrollViewOverview
The NSScrollView class is the central coordinator for AppKit’s scrolling machinery, which is composed of this class, and the NSClipView and NSScroller classes.
When using an NSClipView object within a 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.
Topics
Calculating Layout
frameSize(forContentSize:horizontalScrollerClass:verticalScrollerClass:borderType:controlSize:scrollerStyle:)contentSize(forFrameSize:horizontalScrollerClass:verticalScrollerClass:borderType:controlSize:scrollerStyle:)
Determining Component Sizes
Managing Graphics Attributes
Managing the Views
Managing Scrollers
Managing Rulers
Managing Insets
Scroller Style
Setting Scrolling Behavior
lineScrollhorizontalLineScrollverticalLineScrollpageScrollhorizontalPageScrollverticalPageScrollscrollsDynamicallyscrollWheel(with:)
Updating Display After Scrolling
Arranging Components
Find Bar Positioning
Specifying a Document’s Predominant Scrolling Behavior
Specifying the Scroll View Elasticity
Flashing Overlay Scroll Bars
Zooming the Scroll View
allowsMagnificationmagnificationmagnify(toFit:)maxMagnificationminMagnificationsetMagnification(_:centeredAt:)
Constants
Notifications
willStartLiveMagnifyNotificationdidEndLiveMagnifyNotificationwillStartLiveScrollNotificationdidLiveScrollNotificationdidEndLiveScrollNotification