This is NSCustomImageRep.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 NSCustomImageRep 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/NSCustomImageRep.h fs20 fs28 pard s1 li477 fi0 ri1007 ql tx2494 tx2872 tx3250 fs28 An NSCustomImageRep is an object that uses a delegated method to render an image. When called upon to produce the image, it sends a message to its delegate to have the method performed. fs16 fs28 Like most other kinds of NSImageReps, an NSCustomImageRep is generally used indirectly, through an NSImage object. An NSImage must be able to choose between various representations of a given image. It also needs to provide an off-screen cache of the appropriate depth for any image it uses. It determines this information by querying its NSImageReps. fs16 fs28 Thus to work with an NSImage, an NSCustomImageRep must be able to provide some information about its image. Use the following methods, inherited from the NSImageRep class, to set these attributes of the NSCustomImageRep: fs16 fs28 pard s20 li854 fi0 ri1007 ql tx4509 tx10180 setSize: fi0 setColorSpaceName: fi0 setAlpha: fi0 setPixelsHigh: fi0 setPixelsWide: fi0 setBitsPerSample: fs6 fs28 pard s19 li100 fi0 ri1007 ql f0 b fs36 fs28 Initializing a New NSCustomImageRep fs14 fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 fs28 fi-6552 {f3 -} (id)b initWithDrawSelector:b0 (SEL)i aSelectori0 tab Initializes a new instance so that it delegates the s11 li7030 fi-6553 fi-5796 b delegate:b0 (id)i anObjecti0 tab tab responsibility for drawing to i anObjecti0 . Wheni i0 the NSCustomImageRep receives a b drawb0 message, it sends an i aSelectori0 message to i anObjecti0 . pard s19 li100 fi0 ri1007 ql f0 b fs48 fs28 Identifying the Object fs14 fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 fs28 fi-6552 {f3 -} (id)b delegatetab b0 Returns the delegate. fi-6552 fs16 fs28 fi-6552 {f3 -} (SEL)b drawSelectorb0 tab Returns the associated draw method selector. }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.