Instance Method

drawLabel:inRect:

Draws the receiver’s label in tabRect, which is the area between the curved end caps.

Declaration

- (void)drawLabel:(BOOL)shouldTruncateLabel inRect:(NSRect)labelRect;

Discussion

If shouldTruncateLabel is NO, draws the full label in the rectangle specified by tabRect. If shouldTruncateLabel is YES, draws the truncated label. You can override this method to perform customized label drawing. For example, you might want to add an icon to each tab in the view.

See Also

Working with Labels

label

Sets the label text for the receiver to label.

- sizeOfLabel:

Calculates the size of the receiver’s label.