drawImage(_:withFrame:in:)
Draws the image associated with the button’s current state.
Declaration
func drawImage(_ image: NSImage, withFrame frame: NSRect, in controlView: NSView)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.