Name
NSCustomImageRep — Mac OS X 10.0
Synopsis
This subclass of NSImageRep
allows you to create
images from custom drawing code. For example, one might
implement a subclass of NSCustomImageRep
to draw a
complicated Bezier path as the image represented by the particular
object. This permits shapes to be drawn in contexts that use images
instead of views.
|
@interface NSCustomImageRep : NSImageRep
|
// Initializers
|
- (id)initWithDrawSelector:(SEL)aMethod delegate:(id)anObject; |
// Instance Methods
|
- (id)delegate;
|
- (SEL)drawSelector;
|
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.