DekGenius.com
[ Team LiB ] Previous Section Next Section

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;

    [ Team LiB ] Previous Section Next Section