| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
- (void)scrollRect:(NSRect)aRect by:(NSSize)offset
Copies the visible portion of the receivers rendered image within aRect and lays that portion down again at offset from aRects origin. This method is useful during scrolling or translation of the coordinate system to efficiently move as much of the receivers rendered image as possible without requiring it to be redrawn, following these steps:
Invoke scrollRect:by: to copy the rendered image.
Move the view objects origin or scroll it within its superview.
Calculate the newly exposed rectangles and invoke either setNeedsDisplay: or setNeedsDisplayInRect: to draw them.
You should rarely need to use this method, however. The scrollPoint:, scrollRectToVisible:, and autoscroll: methods automatically perform optimized scrolling.
| References: | |
| >Quickly Moving Views (From: johness does <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.