O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

image with no caption

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required