[Previous] [Class List] [Next]

NSTableHeaderView


Inherits from: NSView : NSResponder : NSObject
Conforms to: NSCoding
(NSResponder)
NSObject (NSObject)
Declared in: AppKit/NSTableHeaderView.h




Class Description


An NSTableHeaderView is used by an NSTableView to draw headers over its columns and to handle mouse events in those headers. See the NSTableView class specification for more information.


Method Types


Setting the table view
- setTableView:
- tableView
Checking altered columns
- draggedColumn
- draggedDistance
- resizedColumn
Utility methods
- columnAtPoint:
- headerRectOfColumn:


Instance Methods



columnAtPoint:

- (int)columnAtPoint:(NSPoint)aPoint

Returns the index of the column whose header lies under aPoint in the NSTableHeaderView, or -1 if no such column is found. aPoint is expressed in the NSTableHeaderView's coordinate system.

draggedColumn

- (int)draggedColumn

If the user is dragging a column in the NSTableView, returns the index of that column. Otherwise returns -1.

See Also: - draggedDistance



draggedDistance

- (float)draggedDistance

If the user is dragging a column in the NSTableView, returns the column's horizontal distance from its original position. Otherwise the return value is meaningless.

See Also: - draggedColumn



headerRectOfColumn:

- (NSRect)headerRectOfColumn:(int)columnIndex

Returns the rectangle containing the header tile for the column at columnIndex. Raises an NSInternalInconistencyException if columnIndex is out of bounds.

See Also: - rectOfColumn: (NSTableView)



resizedColumn

- (int)resizedColumn

If the user is resizing a column in the NSTableView, returns the index of that column. Otherwise returns -1.

setTableView:

- (void)setTableView:(NSTableView *)aTableView

Sets aTableView as the NSTableColumn's NSTableView. You should never need to invoke this method; it's invoked automatically when you set the header view for an NSTableView.

See Also: - setHeaderView: (NSTableView)



tableView

- (NSTableView *)tableView

Returns the NSTableView the NSTableHeaderView belongs to.


[Previous] [Next]