Up

NSTableView

Authors

Nicola Pero (n.pero@mi.flashnet.it)
Pierre-Yves Rivaille (pyrivail@ens-lyon.fr)
Fred Kiefer (fredkiefer@gmx.de)

Copyright: (C) 2000 Free Software Foundation, Inc.


Contents -

  1. Software documentation for the NSTableView class
  2. Software documentation for the NSObject(NSTableDataSource) informal protocol
  3. Software documentation for the NSObject(NSTableViewDelegate) informal protocol
  4. Software documentation for the NSTableView(GNUPrivate) category

Software documentation for the NSTableView class

NSTableView : NSControl

Declared in:
AppKit/NSTableView.h
Conforms to:
NSUserInterfaceValidations
Standards:

Description forthcoming.


Instance Variables

Method summary

addTableColumn: 

- (void) addTableColumn: (NSTableColumn*)aColumn;

Description forthcoming.


allowsColumnReordering 

- (BOOL) allowsColumnReordering;

Description forthcoming.


allowsColumnResizing 

- (BOOL) allowsColumnResizing;

Description forthcoming.


allowsColumnSelection 

- (BOOL) allowsColumnSelection;

Description forthcoming.


allowsEmptySelection 

- (BOOL) allowsEmptySelection;

Description forthcoming.


allowsMultipleSelection 

- (BOOL) allowsMultipleSelection;

Description forthcoming.


autoresizesAllColumnsToFit 

- (BOOL) autoresizesAllColumnsToFit;

Description forthcoming.


autosaveName 

- (NSString*) autosaveName;

Description forthcoming.


autosaveTableColumns 

- (BOOL) autosaveTableColumns;

Description forthcoming.


backgroundColor 

- (NSColor*) backgroundColor;

Description forthcoming.


clickedColumn 

- (int) clickedColumn;

Description forthcoming.


clickedRow 

- (int) clickedRow;

Description forthcoming.


columnAtPoint: 

- (int) columnAtPoint: (NSPoint)aPoint;

Description forthcoming.


columnWithIdentifier: 

- (int) columnWithIdentifier: (id)identifier;

Description forthcoming.


columnsInRect: 

- (NSRange) columnsInRect: (NSRect)aRect;

Description forthcoming.


cornerView 

- (NSView*) cornerView;

Description forthcoming.


dataSource 

- (id) dataSource;

Description forthcoming.


delegate 

- (id) delegate;

Description forthcoming.


deselectAll: 

- (void) deselectAll: (id)sender;

Description forthcoming.


deselectColumn: 

- (void) deselectColumn: (int)columnIndex;

Description forthcoming.


deselectRow: 

- (void) deselectRow: (int)rowIndex;

Description forthcoming.


doubleAction 

- (SEL) doubleAction;

Description forthcoming.


dragImageForRows: event: dragImageOffset: 

- (NSImage*) dragImageForRows: (NSArray*)dragRows event: (NSEvent*)dragEvent dragImageOffset: (NSPoint*)dragImageOffset;

Description forthcoming.


drawBackgroundInClipRect: 

- (void) drawBackgroundInClipRect: (NSRect)clipRect;

Description forthcoming.


drawGridInClipRect: 

- (void) drawGridInClipRect: (NSRect)aRect;

Description forthcoming.


drawRow: clipRect: 

- (void) drawRow: (int)rowIndex clipRect: (NSRect)clipRect;

Description forthcoming.


drawsGrid 

- (BOOL) drawsGrid;

Description forthcoming.


editColumn: row: withEvent: select: 

- (void) editColumn: (int)columnIndex row: (int)rowIndex withEvent: (NSEvent*)theEvent select: (BOOL)flag;

Description forthcoming.


editedColumn 

- (int) editedColumn;

Description forthcoming.


editedRow 

- (int) editedRow;

Description forthcoming.


frameOfCellAtColumn: row: 

- (NSRect) frameOfCellAtColumn: (int)columnIndex row: (int)rowIndex;

Description forthcoming.


gridColor 

- (NSColor*) gridColor;

Description forthcoming.


gridStyleMask 

- (unsigned int) gridStyleMask;

Description forthcoming.


headerView 

- (NSTableHeaderView*) headerView;

Description forthcoming.


highlightSelectionInClipRect: 

- (void) highlightSelectionInClipRect: (NSRect)clipRect;

Description forthcoming.


highlightedTableColumn 

- (NSTableColumn*) highlightedTableColumn;

Description forthcoming.


indicatorImageInTableColumn: 

- (NSImage*) indicatorImageInTableColumn: (NSTableColumn*)aTableColumn;

Description forthcoming.


intercellSpacing 

- (NSSize) intercellSpacing;

Description forthcoming.


isColumnSelected: 

- (BOOL) isColumnSelected: (int)columnIndex;

Description forthcoming.


isRowSelected: 

- (BOOL) isRowSelected: (int)rowIndex;

Description forthcoming.


moveColumn: toColumn: 

- (void) moveColumn: (int)columnIndex toColumn: (int)newIndex;

Description forthcoming.


noteNumberOfRowsChanged 

- (void) noteNumberOfRowsChanged;

Description forthcoming.


numberOfColumns 

- (int) numberOfColumns;

Description forthcoming.


numberOfRows 

- (int) numberOfRows;

Description forthcoming.


numberOfSelectedColumns 

- (int) numberOfSelectedColumns;

Description forthcoming.


numberOfSelectedRows 

- (int) numberOfSelectedRows;

Description forthcoming.


rectOfColumn: 

- (NSRect) rectOfColumn: (int)columnIndex;

Description forthcoming.


rectOfRow: 

- (NSRect) rectOfRow: (int)rowIndex;

Description forthcoming.


reloadData 

- (void) reloadData;

Description forthcoming.


removeTableColumn: 

- (void) removeTableColumn: (NSTableColumn*)aColumn;

Description forthcoming.


rowAtPoint: 

- (int) rowAtPoint: (NSPoint)aPoint;

Description forthcoming.


rowHeight 

- (float) rowHeight;

Description forthcoming.


rowsInRect: 

- (NSRange) rowsInRect: (NSRect)aRect;

Description forthcoming.


scrollColumnToVisible: 

- (void) scrollColumnToVisible: (int)columnIndex;

Description forthcoming.


scrollRowToVisible: 

- (void) scrollRowToVisible: (int)rowIndex;

Description forthcoming.


selectAll: 

- (void) selectAll: (id)sender;

Description forthcoming.


selectColumn: byExtendingSelection: 

- (void) selectColumn: (int)columnIndex byExtendingSelection: (BOOL)flag;

Description forthcoming.


selectColumnIndexes: byExtendingSelection: 

- (void) selectColumnIndexes: (NSIndexSet*)indexes byExtendingSelection: (BOOL)extend;

Description forthcoming.


selectRow: byExtendingSelection: 

- (void) selectRow: (int)rowIndex byExtendingSelection: (BOOL)flag;

Description forthcoming.


selectRowIndexes: byExtendingSelection: 

- (void) selectRowIndexes: (NSIndexSet*)indexes byExtendingSelection: (BOOL)extend;

Description forthcoming.


selectedColumn 

- (int) selectedColumn;

Description forthcoming.


selectedColumnEnumerator 

- (NSEnumerator*) selectedColumnEnumerator;

Description forthcoming.


selectedColumnIndexes 

- (NSIndexSet*) selectedColumnIndexes;

Description forthcoming.


selectedRow 

- (int) selectedRow;

Description forthcoming.


selectedRowEnumerator 

- (NSEnumerator*) selectedRowEnumerator;

Description forthcoming.


selectedRowIndexes 

- (NSIndexSet*) selectedRowIndexes;

Description forthcoming.


setAllowsColumnReordering: 

- (void) setAllowsColumnReordering: (BOOL)flag;

Description forthcoming.


setAllowsColumnResizing: 

- (void) setAllowsColumnResizing: (BOOL)flag;

Description forthcoming.


setAllowsColumnSelection: 

- (void) setAllowsColumnSelection: (BOOL)flag;

Description forthcoming.


setAllowsEmptySelection: 

- (void) setAllowsEmptySelection: (BOOL)flag;

Description forthcoming.


setAllowsMultipleSelection: 

- (void) setAllowsMultipleSelection: (BOOL)flag;

Description forthcoming.


setAutoresizesAllColumnsToFit: 

- (void) setAutoresizesAllColumnsToFit: (BOOL)flag;

Description forthcoming.


setAutosaveName: 

- (void) setAutosaveName: (NSString*)name;

Description forthcoming.


setAutosaveTableColumns: 

- (void) setAutosaveTableColumns: (BOOL)flag;

Description forthcoming.


setBackgroundColor: 

- (void) setBackgroundColor: (NSColor*)aColor;

Description forthcoming.


setCornerView: 

- (void) setCornerView: (NSView*)aView;

Description forthcoming.


setDataSource: 

- (void) setDataSource: (id)anObject;

Description forthcoming.


setDelegate: 

- (void) setDelegate: (id)anObject;

Description forthcoming.


setDoubleAction: 

- (void) setDoubleAction: (SEL)aSelector;

Description forthcoming.


setDrawsGrid: 

- (void) setDrawsGrid: (BOOL)flag;

Description forthcoming.


setDropRow: dropOperation: 

- (void) setDropRow: (int)row dropOperation: (NSTableViewDropOperation)operation;

Description forthcoming.


setGridColor: 

- (void) setGridColor: (NSColor*)aColor;

Description forthcoming.


setGridStyleMask: 

- (void) setGridStyleMask: (unsigned int)gridType;

Description forthcoming.


setHeaderView: 

- (void) setHeaderView: (NSTableHeaderView*)aHeaderView;

Description forthcoming.


setHighlightedTableColumn: 

- (void) setHighlightedTableColumn: (NSTableColumn*)aTableColumn;

Description forthcoming.


setIndicatorImage: inTableColumn: 

- (void) setIndicatorImage: (NSImage*)anImage inTableColumn: (NSTableColumn*)aTableColumn;

Description forthcoming.


setIntercellSpacing: 

- (void) setIntercellSpacing: (NSSize)aSize;

Description forthcoming.


setRowHeight: 

- (void) setRowHeight: (float)rowHeight;

Description forthcoming.


setSortDescriptors: 

- (void) setSortDescriptors: (NSArray*)array;

Description forthcoming.


setUsesAlternatingRowBackgroundColors: 

- (void) setUsesAlternatingRowBackgroundColors: (BOOL)useAlternatingRowColors;

Description forthcoming.


setVerticalMotionCanBeginDrag: 

- (void) setVerticalMotionCanBeginDrag: (BOOL)flag;

Description forthcoming.


sizeLastColumnToFit 

- (void) sizeLastColumnToFit;

Description forthcoming.


sortDescriptors 

- (NSArray*) sortDescriptors;

Description forthcoming.


tableColumnWithIdentifier: 

- (NSTableColumn*) tableColumnWithIdentifier: (id)anObject;

Description forthcoming.


tableColumns 

- (NSArray*) tableColumns;

Description forthcoming.


textDidBeginEditing: 

- (void) textDidBeginEditing: (NSNotification*)aNotification;

Description forthcoming.


textDidChange: 

- (void) textDidChange: (NSNotification*)aNotification;

Description forthcoming.


textDidEndEditing: 

- (void) textDidEndEditing: (NSNotification*)aNotification;

Description forthcoming.


textShouldBeginEditing: 

- (BOOL) textShouldBeginEditing: (NSText*)textObject;

Description forthcoming.


textShouldEndEditing: 

- (BOOL) textShouldEndEditing: (NSText*)textObject;

Description forthcoming.


tile 

- (void) tile;

Description forthcoming.


usesAlternatingRowBackgroundColors 

- (BOOL) usesAlternatingRowBackgroundColors;

Description forthcoming.


verticalMotionCanBeginDrag 

- (BOOL) verticalMotionCanBeginDrag;

Description forthcoming.




Instance Variables for NSTableView Class

_action

@protected SEL _action;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_allowsColumnReordering

@protected BOOL _allowsColumnReordering;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_allowsColumnResizing

@protected BOOL _allowsColumnResizing;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_allowsColumnSelection

@protected BOOL _allowsColumnSelection;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_allowsEmptySelection

@protected BOOL _allowsEmptySelection;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_allowsMultipleSelection

@protected BOOL _allowsMultipleSelection;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_autoresizesAllColumnsToFit

@protected BOOL _autoresizesAllColumnsToFit;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_autosaveName

@protected NSString* _autosaveName;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_autosaveTableColumns

@protected BOOL _autosaveTableColumns;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_backgroundColor

@protected NSColor* _backgroundColor;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_clickedColumn

@protected int _clickedColumn;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_clickedRow

@protected int _clickedRow;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_columnOrigins

@protected float* _columnOrigins;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_cornerView

@protected NSView* _cornerView;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_dataSource

@protected id _dataSource;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_dataSource_editable

@protected BOOL _dataSource_editable;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_del_responds

@protected BOOL _del_responds;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_delegate

@protected id _delegate;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_doubleAction

@protected SEL _doubleAction;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_drawsGrid

@protected BOOL _drawsGrid;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_editedCell

@protected NSCell* _editedCell;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_editedColumn

@protected int _editedColumn;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_editedRow

@protected int _editedRow;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_gridColor

@protected NSColor* _gridColor;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_headerView

@protected NSTableHeaderView* _headerView;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_highlightedTableColumn

@protected NSTableColumn* _highlightedTableColumn;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_intercellSpacing

@protected NSSize _intercellSpacing;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_numberOfColumns

@protected int _numberOfColumns;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_numberOfRows

@protected int _numberOfRows;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_rowHeight

@protected float _rowHeight;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_selectedColumn

@protected int _selectedColumn;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_selectedColumns

@protected NSMutableIndexSet* _selectedColumns;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_selectedRow

@protected int _selectedRow;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_selectedRows

@protected NSMutableIndexSet* _selectedRows;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_selectingColumns

@protected BOOL _selectingColumns;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_superview_width

@protected float _superview_width;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_tableColumns

@protected NSMutableArray* _tableColumns;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_target

@protected id _target;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_textObject

@protected NSText* _textObject;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_tilingDisabled

@protected BOOL _tilingDisabled;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.





Software documentation for the NSObject(NSTableDataSource) informal protocol

NSObject(NSTableDataSource)

Declared in:
AppKit/NSTableView.h
Standards:

Description forthcoming.

Method summary

numberOfRowsInTableView: 

- (int) numberOfRowsInTableView: (NSTableView*)aTableView;

Description forthcoming.


tableView: acceptDrop: row: dropOperation: 

- (BOOL) tableView: (NSTableView*)tableView acceptDrop: (id)info row: (int)row dropOperation: (NSTableViewDropOperation)operation;

Description forthcoming.


tableView: objectValueForTableColumn: row: 

- (id) tableView: (NSTableView*)aTableView objectValueForTableColumn: (NSTableColumn*)aTableColumn row: (int)rowIndex;

Description forthcoming.


tableView: setObjectValue: forTableColumn: row: 

- (void) tableView: (NSTableView*)aTableView setObjectValue: (id)anObject forTableColumn: (NSTableColumn*)aTableColumn row: (int)rowIndex;

Description forthcoming.


tableView: validateDrop: proposedRow: proposedDropOperation: 

- (NSDragOperation) tableView: (NSTableView*)tableView validateDrop: (id)info proposedRow: (int)row proposedDropOperation: (NSTableViewDropOperation)operation;

Description forthcoming.


tableView: writeRows: toPasteboard: 

- (BOOL) tableView: (NSTableView*)tableView writeRows: (NSArray*)rows toPasteboard: (NSPasteboard*)pboard;

Description forthcoming.


Software documentation for the NSObject(NSTableViewDelegate) informal protocol

NSObject(NSTableViewDelegate)

Declared in:
AppKit/NSTableView.h
Standards:
  • MacOS-X
  • OpenStep
  • GNUstep

Description forthcoming.

Method summary

selectionShouldChangeInTableView: 

- (BOOL) selectionShouldChangeInTableView: (NSTableView*)aTableView;

Description forthcoming.


tableView: didClickTableColumn: 

- (void) tableView: (NSTableView*)tableView didClickTableColumn: (NSTableColumn*)tableColumn;

Description forthcoming.


tableView: didDragTableColumn: 

- (void) tableView: (NSTableView*)tableView didDragTableColumn: (NSTableColumn*)tableColumn;

Description forthcoming.


tableView: mouseDownInHeaderOfTableColumn: 

- (void) tableView: (NSTableView*)tableView mouseDownInHeaderOfTableColumn: (NSTableColumn*)tableColumn;

Description forthcoming.


tableView: shouldEditTableColumn: row: 

- (BOOL) tableView: (NSTableView*)aTableView shouldEditTableColumn: (NSTableColumn*)aTableColumn row: (int)rowIndex;

Description forthcoming.


tableView: shouldSelectRow: 

- (BOOL) tableView: (NSTableView*)aTableView shouldSelectRow: (int)rowIndex;

Description forthcoming.


tableView: shouldSelectTableColumn: 

- (BOOL) tableView: (NSTableView*)aTableView shouldSelectTableColumn: (NSTableColumn*)aTableColumn;

Description forthcoming.


tableView: willDisplayCell: forTableColumn: row: 

- (void) tableView: (NSTableView*)aTableView willDisplayCell: (id)aCell forTableColumn: (NSTableColumn*)aTableColumn row: (int)rowIndex;

Description forthcoming.


tableViewColumnDidMove: 

- (void) tableViewColumnDidMove: (NSNotification*)aNotification;

Description forthcoming.


tableViewColumnDidResize: 

- (void) tableViewColumnDidResize: (NSNotification*)aNotification;

Description forthcoming.


tableViewSelectionDidChange: 

- (void) tableViewSelectionDidChange: (NSNotification*)aNotification;

Description forthcoming.


tableViewSelectionIsChanging: 

- (void) tableViewSelectionIsChanging: (NSNotification*)aNotification;

Description forthcoming.


Software documentation for the NSTableView(GNUPrivate) category

NSTableView(GNUPrivate)

Declared in:
AppKit/NSTableView.h
Standards:
  • MacOS-X
  • OpenStep
  • GNUstep

Description forthcoming.

Method summary

_selectColumn: modifiers: 

- (void) _selectColumn: (int)columnIndex modifiers: (unsigned int)modifiers;

Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.


_sendDoubleActionForColumn: 

- (void) _sendDoubleActionForColumn: (int)columnIndex;

Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.



Up