DekGenius.com
[ Team LiB ] Previous Section Next Section

NSClipView Mac OS X 10.0

This NSView subclass is used in conjunction with NSScrollView to contain the document view of the scroll view (the document view is the view that contains the content of the document, such as text or graphics). The primary responsibility of NSClipView is to implement the scrolling machinery used by NSScrollView. Ordinarily, you should not need to interact with NSClipView unless you are implementing a class that provides functionality similar to NSScrollView.

figs/cocn_1515.gif

@interface NSClipView : NSView
 // Accessor Methods
   - (void)setCopiesOnScroll:(BOOL)flag;
   - (BOOL)copiesOnScroll;
   - (void)setBackgroundColor:(NSColor *)color;
   - (NSColor *)backgroundColor;
   - (void)setDrawsBackground:(BOOL)flag;
   - (BOOL)drawsBackground;
   - (void)setDocumentCursor:(NSCursor *)anObj;
   - (NSCursor *)documentCursor;
   - (void)setDocumentView:(NSView *)aView;
   - (id)documentView;
 // Instance Methods
   - (BOOL)autoscroll:(NSEvent *)theEvent;
   - (NSPoint)constrainScrollPoint:(NSPoint)newOrigin;
   - (NSRect)documentRect;
   - (NSRect)documentVisibleRect;
   - (void)scrollToPoint:(NSPoint)newOrigin;
   - (void)viewBoundsChanged:(NSNotification *)notification;
   - (void)viewFrameChanged:(NSNotification *)notification;

    [ Team LiB ] Previous Section Next Section