Instance Method

createContext

Creates the graphics context object used for drawing during the operation.

Declaration

- (NSGraphicsContext *)createContext;

Return Value

The graphics context object used for drawing. This object is created using the settings from the receiver's NSPrintInfo object.

Discussion

Do not invoke this method directly—it is invoked before any output is generated.

See Also

Managing the Drawing Context

context

Returns the graphics context object used for generating output.

- destroyContext

Destroys the receiver’s graphics context.