Name

NSScrollView — Mac OS X 10.0

Synopsis

This subclass of NSView allows a user to view a portion of a large document view using scrollbars. Clipping of the document view is performed by the subclass NSClipView. Horizontal and vertical scrollbars are instances of the class NSScroller. Rulers, which are instances of the class NSRulerView, can be displayed in the left and top edges of the scrollview.

image with no caption

@interface NSScrollView : NSView
                                  // Accessor Methods
   - (void)setBackgroundColor:(NSColor *)color;
   - (NSColor *)backgroundColor;
   - (void)setPageScroll:(float)value;
   - (float)pageScroll;
   - (void)setHorizontalRulerView:(NSRulerView *)ruler;
   - (NSRulerView *)horizontalRulerView;
   - (void)setHasVerticalRuler:(BOOL)flag;
   - (BOOL)hasVerticalRuler;
   - (void)setHasHorizontalRuler:(BOOL)flag;
   - (BOOL)hasHorizontalRuler;
   - (void)setHorizontalPageScroll:(float)value;
   - (float)horizontalPageScroll;
   - (void)setBorderType:(NSBorderType)aType;
   - (NSBorderType)borderType;
   - (void)setHorizontalLineScroll:(float)value;
   - (float)horizontalLineScroll;
   - (void)setRulersVisible:(BOOL)flag;
   - (BOOL)rulersVisible;
   - (void)setScrollsDynamically:(BOOL)flag;
   - (BOOL)scrollsDynamically;
   - (void)setHasVerticalScroller:(BOOL)flag;
   - (BOOL)hasVerticalScroller;
   - (void)setHasHorizontalScroller:(BOOL)flag;
   - (BOOL)hasHorizontalScroller;
   - (void)setLineScroll:(float) ...

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.