Inherits from: NSTextFieldCell : NSActionCell : NSCell : NSObject
Conforms to: NSCoding
(NSCell)
NSCopying (NSCell)
NSObject (NSObject)
Declared in: AppKit/NSTableHeaderCell.h
An NSTableHeaderCell is used by an NSTableHeaderView to draw its column headers. See the NSTableView class specification for more information on how it's used.
Subclasses of NSTableHeaderCell can override drawInteriorWithFrame:inView:, drawWithFrame:inView:, and highlight:withFrame:inView: to change the way headers appear. See the NSCell class specification, and the description below, for information on these methods.
- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView
*)controlView
To make an NSTableHeaderCell display an image, use NSCell's setImage: method, which changes the receiver's cell type to NSImageCellType and stores the image provided. To restore it to displaying a text label, supply a new title using setStringValue:, which removes the image and reverts the receiver's cell type to NSTextCellType.