NSCustomImageRep

NSCustomImageRep Mac OS X 10.0

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.

figs/cocn_1525.gif

@interface NSCustomImageRep : NSImageRep
 // Initializers
   - (id)initWithDrawSelector:(SEL)aMethod delegate:(id)anObject;
 // Instance Methods
   - (id)delegate;
   - (SEL)drawSelector;



    Part II: API Quick Reference
    Chapter 13. Foundation Classes