Contents

barRect(flipped:)

Returns the rectangle in which the bar is drawn.

Declaration

func barRect(flipped: Bool) -> NSRect

Parameters

  • flipped:

    True if the coordinate system of the associated NSSlider or NSMatrix is flipped; otherwise False. You can determine whether this is the case by sending the NSView message Isflipped message to the NSMatrix or NSSlider.

Return Value

The rectangle in which the bar is drawn, specified in the coordinate system of the NSSlider or NSMatrix with which the receiver is associated. The bar doesn’t include the slider’s bezel or knob.

Discussion

You can override this method if custom bar artwork requires specific dimensions.

See Also

Displaying the Cell