(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSScrollView 

Inherits From:	NSView : NSResponder : NSObject 

Declared In:	appkit/NSScrollView.h 

Determining Component Sizes 

- (NSSize)contentSize	Gets the content view's size. 
- (NSRect)documentVisibleRect	Gets the visible portion of the document view. 

Laying Out the NSScrollView 

+ (NSSize)contentSizeForFrameSize:(NSSize)size	  
hasHorizontalScroller:(BOOL)horizFlag	 Gets the content view size for the given NSScrollView
hasVerticalScroller:(BOOL)vertFlag	 	frame size.
borderType:(NSBorderType)aType	 
+ (NSSize)frameSizeForContentSize:(NSSize)size	   
hasHorizontalScroller:(BOOL)horizFlag	 Gets the NSScrollView frame size for the given content
hasVerticalScroller:(BOOL)vertFlag	 	view size.
borderType:(NSBorderType)aType	 
- (void)setHasHorizontalScroller:(BOOL)flag	Instructs the NSScrollView whether to create and use a horizontal scroller. 
- (BOOL)hasHorizontalScroller	Returns YES if the NSScrollView object has a horizontal scroller.
- (void)setHasVerticalScroller:(BOOL)flag	Instructs the NSScrollView whether to create and use a vertical scroller.  
- (BOOL)hasVerticalScroller	Returns YES if the NSScrollView object has a vertical scroller.
- (void)tile	Retiles the scrollers and content view. 
- (void)toggleRuler:(id)sender	Makes the ruler visible or invisible, whichever is the opposite of its current state.
- (BOOL)isRulerVisible	Returns whether the ruler is visible in the NSScrollView.

Managing Component Views 

- (void)setDocumentView:(NSView *)aView	Makes aView the NSScrollView's document view. 
- (id)documentView	Returns the current document view. 
- (void)setHorizontalScroller:(NSScroller *)anObject
	Sets the horizontal NSScroller object. 
- (NSScroller *)horizontalScroller	Returns the horizontal NSScroller object.
- (void)setVerticalScroller:(NSScroller *)anObject
	Sets the vertical NSScroller object.
- (NSScroller *)verticalScroller	Returns the vertical NSScroller object.
- (void)reflectScrolledClipView:(NSClipView *)cView 
	Moves the scrollers to reflect change in the coordinates of the clip view.

Modifying Graphic Attributes 

- (void)setBorderType:(NSBorderType)aType	Sets the border type of the NSScrollView. 
- (NSBorderType)borderType	Returns the border type. 
- (void)setBackgroundColor:(NSColor *)color	Sets the NSScrollView's background color. 
- (NSColor *)backgroundColor	Returns the NSScrollView's background color. 

Setting Scrolling Behavior 

- (void)setScrollsDynamically:(BOOL)flag	Sets how the document view is displayed during scrolling.
- (BOOL)scrollsDynamically	Returns whether the NSScrollView scrolls dynamically.
- (void)setLineScroll:(float)value	Sets the amount to scroll when scrolling a line. 
- (void)setPageScroll:(float)value	Sets the amount of overlap for a page scroll. 

Managing the Cursor 

- (void)setDocumentCursor:(NSCursor *)anObject
	Sets the cursor for the document view.