ftp.nice.ch/peanuts/GeneralData/Documents/openstep/OpenStepSpec_rtf.tar.gz#/OpenStepSpec_rtf/ApplicationKit/Classes/NSCachedImageRep.rtf

This is NSCachedImageRep.rtf in view mode; [Download] [Up]

paperh18648 margl-907 margr0 margt0 margb0 fi0 ri0 ql sb0 f1 fs24 Copyright f3 'e3f1 1994 by NeXT Computer, Inc.  All Rights Reserved.

s4 li100 fi0 ri1007 ql f0 b fs36 fs100 
fs36 NSCachedImageRep
pard s14 li2872 fi-2771 ri1007 ql tx2872 f1 b0 fs28 fs48 
fs28 f0 b fs24 Inherits From:tab b0 fs28 f1 NSImageRep : NSObject
fs20 
fs28 s7 f0 b fs24 Conforms To:tab b0 fs28 f1 NSCoding, NSCopying (NSImageRep)
fi0 NSObject (NSObject)
fs20 
fs28 s8 fi-2771 f0 b fs24 Declared In:tab b0 fs28 f1 AppKit/NSCachedImageRep.h 
fs20 
fs28 pard s19 li100 fi0 ri1007 ql f0 b fs28 fs20 
fs28 Class Description
fs14 
fs28 pard s1 li477 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 b0 fs2 
fs28 NSCachedImageRep, a subclass of NSImageRep, defines an object that stores its source data as a rendered image in a window, typically a window that stays off-screen. The only data that'27s available for reproducing the image is the image itself. Thus an NSCachedImageRep differs from the other kinds of NSImageReps defined in the Application Kit, all of which can reproduce an image from the information originally used to draw it. Instances of this class are generally used indirectly, through an NSImage object. 
fs16 
fs28 pard s19 li100 fi0 ri1007 ql f0 b fs24 
fs28 Initializing an NSCachedImageRep 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (id)b initWithSize:b0 (NSSize)i aSizei0  tab Initializes a new NSCachedImageRep for an image of the
s11 li7030 fi-6553 fi-5796 b depth:b0 (NSWindowDepth)i aDepthi0  tab tab specified size and depth. The i separatei0  argument
b separate:b0 (BOOL)i separatei0  tab tab specifies whether the image will get its own unique
b alpha:b0 (BOOL)i alphai0 tab tab cache, instead of possibly sharing one with other images. For best performance (although it'27s not essential), the i alphai0  argument should be set according to whether the image will have a channel for transparency information.
s9 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 {f3 -} (id)b initWithWindow:b0 (NSWindow *)i aWindowi0 tab Initializes the new NSCachedImageRep for an image to be
s11 li7030 fi-6553 fi-5796 b rect:b0 (NSRect)i aRecti0 tab tab drawn in the rectangle i aRecti0  of the specified window. This method retains i aWindowi0 .
pard s19 li100 fi0 ri1007 ql f0 b fs48 
fs28 Getting the Representation 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (NSRect)b rectb0 tab Returns the rectangle where the image is cached. 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (NSWindow *)b windowb0 tab Returns the NSWindow where the image is cached.
fi-6552 fs16 
fs28 fi-6552 
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.