NSMatrix

Authors

Ovidiu Predescu( ovidiu@net-community.com )
Matrix class for grouping controls

Copyright: (C) 1996, 1997, 1999 Free Software Foundation, Inc.

Software documentation for the NSMatrix class

NSMatrix : NSControl

Declared: AppKit/NSMatrix.h
Conform: NSCoding

cellClass

+ (Class) cellClass;


setCellClass:

+ (void) setCellClass: (Class)classId;


acceptsFirstMouse:

- (BOOL) acceptsFirstMouse: (NSEvent*)theEvent;


action

- (SEL) action;


addColumn

- (void) addColumn;


addColumnWithCells:

- (void) addColumnWithCells: (NSArray*)cellArray;


addRow

- (void) addRow;


addRowWithCells:

- (void) addRowWithCells: (NSArray*)cellArray;


allowsEmptySelection

- (BOOL) allowsEmptySelection;


autosizesCells

- (BOOL) autosizesCells;


backgroundColor

- (NSColor*) backgroundColor;


cellAtRow:column:

- (id) cellAtRow: (int)row column: (int)column;


cellBackgroundColor

- (NSColor*) cellBackgroundColor;


cellClass

- (Class) cellClass;


cellFrameAtRow:column:

- (NSRect) cellFrameAtRow: (int)row column: (int)column;


cellSize

- (NSSize) cellSize;


cellWithTag:

- (id) cellWithTag: (int)anInt;


cells

- (NSArray*) cells;


delegate

- (id) delegate;


deselectAllCells

- (void) deselectAllCells;


deselectSelectedCell

- (void) deselectSelectedCell;


doubleAction

- (SEL) doubleAction;


drawCellAtRow:column:

- (void) drawCellAtRow: (int)row column: (int)column;


drawsBackground

- (BOOL) drawsBackground;


drawsCellBackground

- (BOOL) drawsCellBackground;


errorAction

- (SEL) errorAction;


getNumberOfRows:columns:

- (void) getNumberOfRows: (int*)rowCount columns: (int*)columnCount;


getRow:column:forPoint:

- (BOOL) getRow: (int*)row column: (int*)column forPoint: (NSPoint)point;


getRow:column:ofCell:

- (BOOL) getRow: (int*)row column: (int*)column ofCell: (NSCell*)aCell;


highlightCell:atRow:column:

- (void) highlightCell: (BOOL)flag atRow: (int)row column: (int)column;


initWithFrame:

- (id) initWithFrame: (NSRect)frameRect;


initWithFrame:mode:cellClass:numberOfRows:numberOfColumns:

- (id) initWithFrame: (NSRect)frameRect mode: (int)aMode cellClass: (Class)class numberOfRows: (int)rowsHigh numberOfColumns: (int)colsWide;


initWithFrame:mode:prototype:numberOfRows:numberOfColumns:

- (id) initWithFrame: (NSRect)frameRect mode: (int)aMode prototype: (NSCell*)prototype numberOfRows: (int)rowsHigh numberOfColumns: (int)colsWide;


insertColumn:

- (void) insertColumn: (int)column;


insertColumn:withCells:

- (void) insertColumn: (int)column withCells: (NSArray*)cellArray;


insertRow:

- (void) insertRow: (int)row;


insertRow:withCells:

- (void) insertRow: (int)row withCells: (NSArray*)cellArray;


intercellSpacing

- (NSSize) intercellSpacing;


isAutoscroll

- (BOOL) isAutoscroll;


isSelectionByRect

- (BOOL) isSelectionByRect;


keyCell

- (id) keyCell;


makeCellAtRow:column:

- (NSCell*) makeCellAtRow: (int)row column: (int)column;


mode

- (NSMatrixMode) mode;


mouseDown:

- (void) mouseDown: (NSEvent*)theEvent;


mouseDownFlags

- (int) mouseDownFlags;


nextText

- (id) nextText;


numberOfColumns

- (int) numberOfColumns;


numberOfRows

- (int) numberOfRows;


performKeyEquivalent:

- (BOOL) performKeyEquivalent: (NSEvent*)theEvent;


previousText

- (id) previousText;


prototype

- (id) prototype;


putCell:atRow:column:

- (void) putCell: (NSCell*)newCell atRow: (int)row column: (int)column;


removeColumn:

- (void) removeColumn: (int)col;


removeRow:

- (void) removeRow: (int)row;


renewRows:columns:

- (void) renewRows: (int)r columns: (int)c;


resetCursorRects

- (void) resetCursorRects;


scrollCellToVisibleAtRow:column:

- (void) scrollCellToVisibleAtRow: (int)row column: (int)column;


selectAll:

- (void) selectAll: (id)sender;


selectCellAtRow:column:

- (void) selectCellAtRow: (int)row column: (int)column;


selectCellWithTag:

- (BOOL) selectCellWithTag: (int)anInt;


selectText:

- (void) selectText: (id)sender;


selectTextAtRow:column:

- (id) selectTextAtRow: (int)row column: (int)column;


selectedCell

- (id) selectedCell;


selectedCells

- (NSArray*) selectedCells;


selectedColumn

- (int) selectedColumn;


selectedRow

- (int) selectedRow;


sendAction

- (BOOL) sendAction;


sendAction:to:forAllCells:

- (void) sendAction: (SEL)aSelector to: (id)anObject forAllCells: (BOOL)flag;


sendDoubleAction

- (void) sendDoubleAction;


setAction:

- (void) setAction: (SEL)sel;


setAllowsEmptySelection:

- (void) setAllowsEmptySelection: (BOOL)f;


setAutoscroll:

- (void) setAutoscroll: (BOOL)flag;


setAutosizesCells:

- (void) setAutosizesCells: (BOOL)flag;


setBackgroundColor:

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


setCellBackgroundColor:

- (void) setCellBackgroundColor: (NSColor*)c;


setCellClass:

- (void) setCellClass: (Class)class;


setCellSize:

- (void) setCellSize: (NSSize)size;


setDelegate:

- (void) setDelegate: (id)object;


setDoubleAction:

- (void) setDoubleAction: (SEL)sel;


setDrawsBackground:

- (void) setDrawsBackground: (BOOL)flag;


setDrawsCellBackground:

- (void) setDrawsCellBackground: (BOOL)f;


setErrorAction:

- (void) setErrorAction: (SEL)sel;


setIntercellSpacing:

- (void) setIntercellSpacing: (NSSize)size;


setKeyCell:

- (void) setKeyCell: (NSCell*)aCell;


setMode:

- (void) setMode: (NSMatrixMode)aMode;


setNextText:

- (void) setNextText: (id)anObject;


setPreviousText:

- (void) setPreviousText: (id)anObject;


setPrototype:

- (void) setPrototype: (NSCell*)aCell;


setScrollable:

- (void) setScrollable: (BOOL)flag;


setSelectionByRect:

- (void) setSelectionByRect: (BOOL)flag;


setSelectionFrom:to:anchor:highlight:

- (void) setSelectionFrom: (int)startPos to: (int)endPos anchor: (int)anchorPos highlight: (BOOL)flag;


setState:atRow:column:

- (void) setState: (int)value atRow: (int)row column: (int)column;


setTabKeyTraversesCells:

- (void) setTabKeyTraversesCells: (BOOL)flag;


setValidateSize:

- (void) setValidateSize: (BOOL)flag;


sizeToCells

- (void) sizeToCells;


sortUsingFunction:context:

- (void) sortUsingFunction: (int (*)(id element1,id element2,void*userData))comparator context: (void*)context;


sortUsingSelector:

- (void) sortUsingSelector: (SEL)comparator;


tabKeyTraversesCells

- (BOOL) tabKeyTraversesCells;


textDidBeginEditing:

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


textDidChange:

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


textDidEndEditing:

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


textShouldBeginEditing:

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


textShouldEndEditing:

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