drawImage(withFrame:in:)
Draws the image associated with the menu item.
Declaration
func drawImage(withFrame cellFrame: NSRect, in controlView: NSView)Parameters
- cellFrame:
A rectangle defining the receiver’s frame area.
- controlView:
The view object that contains this cell (usually an Nscontrol object).
Discussion
This method invokes the NSCell method imageRect(forBounds:), passing it cellFrame, to calculate the rectangle in which to draw the image. This method is invoked by the cell’s drawWithFrame: method. You should not need to invoke it directly. Subclasses may override this method to control the drawing of the image.