Name

NSClipView — Mac OS X 10.0

Synopsis

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.

image with no caption

@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;

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.