Contents

titleRect(forBounds:)

Returns the rectangle in which the receiver draws its title text.

Declaration

func titleRect(forBounds rect: NSRect) -> NSRect

Parameters

  • rect:

    The bounding rectangle of the receiver.

Return Value

The rectangle in which the receiver draws its title text.

Discussion

If the receiver is a text-type cell, this method resizes the drawing rectangle for the title (theRect) inward by a small offset to accommodate the cell border. If the receiver is not a text-type cell, the method does nothing.

See Also

Determining Cell Size