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

NSCachedImageRep — Mac OS X 10.0

Synopsis

This subclass of NSImageRep stores an image’s data representation as an image that has been rendered into a window, which is usually an off-screen window. Images represented by NSCachedImageRep can be redrawn very quickly as they have already been rendered to the screen environment.

image with no caption

@interface NSCachedImageRep : NSImageRep
                                  // Initializers
   - (id)initWithSize:(NSSize)size 
                                 depth:(NSWindowDepth)depth 
                                 separate:(BOOL)flag 
                                 alpha:(BOOL)alpha;
   - (id)initWithWindow:(NSWindow *)win 
                                 rect:(NSRect)rect;
                                  // Instance Methods
   - (NSRect)rect;
   - (NSWindow *)window;

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