| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AppKit.framework |
| Availability | Available in Mac OS X v10.0 and later. |
| Companion guide | |
| Declared in | NSTableHeaderView.h |
An NSTableHeaderView is used by an NSTableView to draw headers over its columns and to handle mouse events in those headers.
NSTableHeaderView uses NSTableHeaderCell to implement its user interface.
Returns the index of the column whose header lies under aPoint in the receiver, or –1 if no such column is found.
- (NSInteger)columnAtPoint:(NSPoint)aPoint
aPoint is expressed in the receiver’s coordinate system.
NSTableHeaderView.hIf the user is dragging a column in the receiver, returns the index of that column.
- (NSInteger)draggedColumn
Otherwise returns –1.
NSTableHeaderView.hIf the user is dragging a column in the receiver, returns the column’s horizontal distance from its original position.
- (CGFloat)draggedDistance
Otherwise the return value is meaningless.
NSTableHeaderView.hReturns the rectangle containing the header tile for the column at columnIndex.
- (NSRect)headerRectOfColumn:(NSInteger)columnIndex
Raises an NSInternalInconsistencyException if columnIndex is out of bounds.
– rectOfColumn: (NSTableView)NSTableHeaderView.hIf the user is resizing a column in the receiver, returns the index of that column.
- (NSInteger)resizedColumn
Otherwise returns –1.
NSTableHeaderView.hSets aTableView as the receiver’s NSTableView.
- (void)setTableView:(NSTableView *)aTableView
You should never need to invoke this method; it’s invoked automatically when you set the header view for an NSTableView.
– setHeaderView: (NSTableView)NSTableHeaderView.hReturns the NSTableView the receiver belongs to.
- (NSTableView *)tableView
NSTableHeaderView.hLast updated: 2006-05-23