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 for NSTableView Class

_action

@private SEL _action;

Description forthcoming.


_allowsColumnReordering

@private BOOL _allowsColumnReordering;

Description forthcoming.


_allowsColumnResizing

@private BOOL _allowsColumnResizing;

Description forthcoming.


_allowsColumnSelection

@private BOOL _allowsColumnSelection;

Description forthcoming.


_allowsEmptySelection

@private BOOL _allowsEmptySelection;

Description forthcoming.


_allowsMultipleSelection

@private BOOL _allowsMultipleSelection;

Description forthcoming.


_autoresizesAllColumnsToFit

@private BOOL _autoresizesAllColumnsToFit;

Description forthcoming.


_autosaveName

@private NSString* _autosaveName;

Description forthcoming.


_autosaveTableColumns

@private BOOL _autosaveTableColumns;

Description forthcoming.


_backgroundColor

@private NSColor* _backgroundColor;

Description forthcoming.


_clickedColumn

@private int _clickedColumn;

Description forthcoming.


_clickedRow

@private int _clickedRow;

Description forthcoming.


_columnOrigins

@private float* _columnOrigins;

Description forthcoming.


_cornerView

@private NSView* _cornerView;

Description forthcoming.


_dataSource

@private id _dataSource;

Description forthcoming.


_dataSource_editable

@private BOOL _dataSource_editable;

Description forthcoming.


_del_responds

@private BOOL _del_responds;

Description forthcoming.


_delegate

@private id _delegate;

Description forthcoming.


_doubleAction

@private SEL _doubleAction;

Description forthcoming.


_drawsGrid

@private BOOL _drawsGrid;

Description forthcoming.


_editedCell

@private NSCell* _editedCell;

Description forthcoming.


_editedColumn

@private int _editedColumn;

Description forthcoming.


_editedRow

@private int _editedRow;

Description forthcoming.


_gridColor

@private NSColor* _gridColor;

Description forthcoming.


_headerView

@private NSTableHeaderView* _headerView;

Description forthcoming.


_highlightedTableColumn

@private NSTableColumn* _highlightedTableColumn;

Description forthcoming.


_intercellSpacing

@private NSSize _intercellSpacing;

Description forthcoming.


_numberOfColumns

@private int _numberOfColumns;

Description forthcoming.


_numberOfRows

@private int _numberOfRows;

Description forthcoming.


_rowHeight

@private float _rowHeight;

Description forthcoming.


_selectedColumn

@private int _selectedColumn;

Description forthcoming.


_selectedColumns

@private NSMutableIndexSet* _selectedColumns;

Description forthcoming.


_selectedRow

@private int _selectedRow;

Description forthcoming.


_selectedRows

@private NSMutableIndexSet* _selectedRows;

Description forthcoming.


_selectingColumns

@private BOOL _selectingColumns;

Description forthcoming.


_superview_width

@private float _superview_width;

Description forthcoming.


_tableColumns

@private NSMutableArray* _tableColumns;

Description forthcoming.


_target

@private id _target;

Description forthcoming.


_textObject

@private NSText* _textObject;

Description forthcoming.


_tilingDisabled

@private BOOL _tilingDisabled;

Description forthcoming.





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.


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