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;

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.