Instance Method

imageRectForBounds:

Returns the rectangle in which the receiver draws its image.

Declaration

- (NSRect)imageRectForBounds:(NSRect)rect;

Parameters

theRect

The bounding rectangle of the receiver.

Return Value

The rectangle in which the receiver draws its image. This rectangle is slightly offset from the one in theRect.

See Also

Determining Cell Size

- calcDrawInfo:

Recalculates the cell geometry.

cellSize

The minimum size needed to display the cell.

- cellSizeForBounds:

Returns the minimum size needed to display the receiver, constraining it to the specified rectangle.

- drawingRectForBounds:

Returns the rectangle within which the receiver draws itself

- titleRectForBounds:

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

controlSize

The size of the cell.