Next Page > Hide TOC

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
Declared In
NSTableHeaderCell.h

sortIndicatorRectForBounds:

Returns the location to display the sorting indicator given theRect.

- (NSRect)sortIndicatorRectForBounds:(NSRect)theRect

Availability
Declared In
NSTableHeaderCell.h

Next Page > Hide TOC


© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.