Instance Method

calcDrawInfo:

Recalculates the cell geometry.

Declaration

- (void)calcDrawInfo:(NSRect)rect;

Parameters

aRect

The reference rectangle to use when calculating the cell information.

Discussion

Objects (such as controls) that manage NSCell objects generally maintain a flag that informs them if any of their cells have been modified in such a way that the location or size of the cell should be recomputed. If so, calcSize method of NSControl is automatically invoked prior to the display of the cell, and that method invokes the calcDrawInfo: method of the cell.

The default implementation of this method does nothing.

See Also

Determining Cell Size

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

- imageRectForBounds:

Returns the rectangle in which the receiver draws its image.

- titleRectForBounds:

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

controlSize

The size of the cell.