Mac OS X Reference Library Apple Developer Connection spyglass button

NSTableHeaderCell Class Reference

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

Overview

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.

Tasks

Sorting

Instance Methods

drawSortIndicatorWithFrame:inView:ascending:priority:

Draws a sorting indicator given a cellFrame contained inside controlView.

- (void)drawSortIndicatorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView ascending:(BOOL)ascending priority:(NSInteger)priority

Discussion

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.

Availability
  • Available in Mac OS X v10.3 and later.
Declared In
NSTableHeaderCell.h

sortIndicatorRectForBounds:

Returns the location to display the sorting indicator given theRect.

- (NSRect)sortIndicatorRectForBounds:(NSRect)theRect

Availability
  • Available in Mac OS X v10.3 and later.
Declared In
NSTableHeaderCell.h


Last updated: 2006-05-23

Did this document help you? Yes It's good, but... Not helpful...