O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required