| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AppKit.framework |
| Availability | Available in Mac OS X v10.0 and later. |
| Companion guide | |
| Declared in | 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:, editWithFrame:inView:editor:delegate:event:, and highlight:withFrame:inView: to change the way headers appear. See the NSCell class specification, and the following description, for information on these methods.
Draws a sorting indicator given a cellFrame contained inside controlView.
- (void)drawSortIndicatorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView ascending:(BOOL)ascending priority:(NSInteger)priority
If priority is 0, this is the primary sort indicator. If ascending is YES, a "^" indicator will be drawn. Override this method to customize the sorting user interface.
NSTableHeaderCell.hReturns the location to display the sorting indicator given theRect.
- (NSRect)sortIndicatorRectForBounds:(NSRect)theRect
NSTableHeaderCell.hLast updated: 2006-05-23