calcDrawInfo(_:)
Recalculates the cell geometry.
Declaration
func calcDrawInfo(_ rect: NSRect)Parameters
- rect:
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.