Instance Method

drawImage:withFrame:inView:

Draws the image associated with the button’s current state.

Declaration

- (void)drawImage:(NSImage *)image withFrame:(NSRect)frame inView:(NSView *)controlView;

Parameters

image

The image associated with the button's current state.

frame

The bounding rectangle of the button.

controlView

The control being drawn.

Discussion

This method is called automatically when the button is redrawn; you should not call it directly.

You specify the primary and alternate images for the button using Interface Builder.

See Also

Drawing the Button Content

- drawBezelWithFrame:inView:

Draws the border of the button using the current bezel style.

- drawTitle:withFrame:inView:

Draws the button’s title centered vertically in a specified rectangle.