Contents

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 NSScrollView

Overview

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

Determining Component Sizes

Managing Graphics Attributes

Managing the Views

Managing Scrollers

Managing Rulers

Managing Insets

Scroller Style

Setting Scrolling Behavior

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

Constants

Notifications

Initializers

See Also

Views