Draws the receiver’s label in tab
, which is the area between the curved end caps.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
- (void)drawLabel:(BOOL)shouldTruncateLabel inRect:(NSRect)labelRect;
Discussion
If should
is NO
, draws the full label in the rectangle specified by tab
. If should
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.