Up

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 in:
AppKit/NSMatrix.h
Conforms to:
NSCoding
Standards:

Description forthcoming.



Instance Variables for NSMatrix Class

_action

@private SEL _action;

Description forthcoming.


_allowsEmptySelection

@private BOOL _allowsEmptySelection;

Description forthcoming.


_autoscroll

@private BOOL _autoscroll;

Description forthcoming.


_autosizesCells

@private BOOL _autosizesCells;

Description forthcoming.


_backgroundColor

@private NSColor* _backgroundColor;

Description forthcoming.


_cellBackgroundColor

@private NSColor* _cellBackgroundColor;

Description forthcoming.


_cellClass

@private Class _cellClass;

Description forthcoming.


_cellInit

@private IMP _cellInit;

Description forthcoming.


_cellNew

@private IMP _cellNew;

Description forthcoming.


_cellPrototype

@private id _cellPrototype;

Description forthcoming.


_cellSize

@private NSSize _cellSize;

Description forthcoming.


_cells

@private id** _cells;

Description forthcoming.


_delegate

@private id _delegate;

Description forthcoming.


_dottedColumn

@private int _dottedColumn;

Description forthcoming.


_dottedRow

@private int _dottedRow;

Description forthcoming.


_doubleAction

@private SEL _doubleAction;

Description forthcoming.


_drawsBackground

@private BOOL _drawsBackground;

Description forthcoming.


_drawsCellBackground

@private BOOL _drawsCellBackground;

Description forthcoming.


_errorAction

@private SEL _errorAction;

Description forthcoming.


_intercell

@private NSSize _intercell;

Description forthcoming.


_maxCols

@private int _maxCols;

Description forthcoming.


_maxRows

@private int _maxRows;

Description forthcoming.


_mode

@private NSMatrixMode _mode;

Description forthcoming.


_myZone

@private NSZone* _myZone;

Description forthcoming.


_numCols

@private int _numCols;

Description forthcoming.


_numRows

@private int _numRows;

Description forthcoming.


_reserved1

@private id _reserved1;

Description forthcoming.


_selectedCell

@private id _selectedCell;

Description forthcoming.


_selectedCells

@private BOOL** _selectedCells;

Description forthcoming.


_selectedColumn

@private int _selectedColumn;

Description forthcoming.


_selectedRow

@private int _selectedRow;

Description forthcoming.


_selectionByRect

@private BOOL _selectionByRect;

Description forthcoming.


_tabKeyTraversesCells

@private BOOL _tabKeyTraversesCells;

Description forthcoming.


_target

@private id _target;

Description forthcoming.


_textObject

@private NSText* _textObject;

Description forthcoming.





Method summary

cellClass 

+ (Class) cellClass;

Description forthcoming.


setCellClass: 

+ (void) setCellClass: (Class)classId;

Description forthcoming.


acceptsFirstMouse: 

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

Description forthcoming.


action 

- (SEL) action;

Description forthcoming.


addColumn 

- (void) addColumn;

Description forthcoming.


addColumnWithCells: 

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

Description forthcoming.


addRow 

- (void) addRow;

Description forthcoming.


addRowWithCells: 

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

Description forthcoming.


allowsEmptySelection 

- (BOOL) allowsEmptySelection;

Description forthcoming.


autosizesCells 

- (BOOL) autosizesCells;

Description forthcoming.


backgroundColor 

- (NSColor*) backgroundColor;

Description forthcoming.


cellAtRow: column: 

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

Description forthcoming.


cellBackgroundColor 

- (NSColor*) cellBackgroundColor;

Description forthcoming.


cellClass 

- (Class) cellClass;

Description forthcoming.


cellFrameAtRow: column: 

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

Description forthcoming.


cellSize 

- (NSSize) cellSize;

Description forthcoming.


cellWithTag: 

- (id) cellWithTag: (int)anInt;

Description forthcoming.


cells 

- (NSArray*) cells;

Description forthcoming.


delegate 

- (id) delegate;

Description forthcoming.


deselectAllCells 

- (void) deselectAllCells;

Description forthcoming.


deselectSelectedCell 

- (void) deselectSelectedCell;

Description forthcoming.


doubleAction 

- (SEL) doubleAction;

Description forthcoming.


drawCellAtRow: column: 

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

Description forthcoming.


drawsBackground 

- (BOOL) drawsBackground;

Description forthcoming.


drawsCellBackground 

- (BOOL) drawsCellBackground;

Description forthcoming.


errorAction 

- (SEL) errorAction;

Description forthcoming.


getNumberOfRows: columns: 

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

Description forthcoming.


getRow: column: forPoint: 

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

Description forthcoming.


getRow: column: ofCell: 

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

Description forthcoming.


highlightCell: atRow: column: 

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

Description forthcoming.


initWithFrame: 

- (id) initWithFrame: (NSRect)frameRect;

Description forthcoming.


initWithFrame: mode: cellClass: numberOfRows: numberOfColumns: 

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

Description forthcoming.


initWithFrame: mode: prototype: numberOfRows: numberOfColumns: 

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

Description forthcoming.


insertColumn: 

- (void) insertColumn: (int)column;

Description forthcoming.


insertColumn: withCells: 

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

Description forthcoming.


insertRow: 

- (void) insertRow: (int)row;

Description forthcoming.


insertRow: withCells: 

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

Description forthcoming.


intercellSpacing 

- (NSSize) intercellSpacing;

Description forthcoming.


isAutoscroll 

- (BOOL) isAutoscroll;

Description forthcoming.


isSelectionByRect 

- (BOOL) isSelectionByRect;

Description forthcoming.


keyCell 

- (id) keyCell;

Description forthcoming.


makeCellAtRow: column: 

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

Description forthcoming.


mode 

- (NSMatrixMode) mode;

Description forthcoming.


mouseDown: 

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

Description forthcoming.


mouseDownFlags 

- (int) mouseDownFlags;

Description forthcoming.


nextText 

- (id) nextText;

Description forthcoming.


numberOfColumns 

- (int) numberOfColumns;

Description forthcoming.


numberOfRows 

- (int) numberOfRows;

Description forthcoming.


performKeyEquivalent: 

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

Description forthcoming.


previousText 

- (id) previousText;

Description forthcoming.


prototype 

- (id) prototype;

Description forthcoming.


putCell: atRow: column: 

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

Description forthcoming.


removeColumn: 

- (void) removeColumn: (int)column;

Description forthcoming.


removeRow: 

- (void) removeRow: (int)row;

Description forthcoming.


renewRows: columns: 

- (void) renewRows: (int)newRows columns: (int)newColumns;

Description forthcoming.


resetCursorRects 

- (void) resetCursorRects;

Description forthcoming.


scrollCellToVisibleAtRow: column: 

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

Description forthcoming.


selectAll: 

- (void) selectAll: (id)sender;

Description forthcoming.


selectCellAtRow: column: 

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

Description forthcoming.


selectCellWithTag: 

- (BOOL) selectCellWithTag: (int)anInt;

Description forthcoming.


selectText: 

- (void) selectText: (id)sender;

Description forthcoming.


selectTextAtRow: column: 

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

Description forthcoming.


selectedCell 

- (id) selectedCell;

Description forthcoming.


selectedCells 

- (NSArray*) selectedCells;

Description forthcoming.


selectedColumn 

- (int) selectedColumn;

Description forthcoming.


selectedRow 

- (int) selectedRow;

Description forthcoming.


sendAction 

- (BOOL) sendAction;

Description forthcoming.


sendAction: to: forAllCells: 

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

Description forthcoming.


sendDoubleAction 

- (void) sendDoubleAction;

Description forthcoming.


setAction: 

- (void) setAction: (SEL)aSelector;

Sets the message to send when a single click occurs.


setAllowsEmptySelection: 

- (void) setAllowsEmptySelection: (BOOL)flag;

Sets a flag to indicate whether the matrix should permit empty selections or should force one or mor cells to be selected at all times.


setAutoscroll: 

- (void) setAutoscroll: (BOOL)flag;

Description forthcoming.


setAutosizesCells: 

- (void) setAutosizesCells: (BOOL)flag;

Description forthcoming.


setBackgroundColor: 

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

Description forthcoming.


setCellBackgroundColor: 

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

Description forthcoming.


setCellClass: 

- (void) setCellClass: (Class)classId;

Description forthcoming.


setCellSize: 

- (void) setCellSize: (NSSize)aSize;

Description forthcoming.


setDelegate: 

- (void) setDelegate: (id)anObject;

Description forthcoming.


setDoubleAction: 

- (void) setDoubleAction: (SEL)aSelector;

Sets the message to send when a double click occurs.
NB: In GNUstep the following method does *not* set ignoresMultiClick to NO as in the MacOS-X spec.
It simply sets the doubleAction, as in OpenStep spec.


setDrawsBackground: 

- (void) setDrawsBackground: (BOOL)flag;

Description forthcoming.


setDrawsCellBackground: 

- (void) setDrawsCellBackground: (BOOL)flag;

Set a flag to say whether the matrix will draw call backgrounds (YES) or expect the cell to do it itsself (NO).


setErrorAction: 

- (void) setErrorAction: (SEL)aSelector;

Description forthcoming.


setIntercellSpacing: 

- (void) setIntercellSpacing: (NSSize)aSize;

Description forthcoming.


setKeyCell: 

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

Description forthcoming.


setMode: 

- (void) setMode: (NSMatrixMode)aMode;

Description forthcoming.


setNextText: 

- (void) setNextText: (id)anObject;

Description forthcoming.


setPreviousText: 

- (void) setPreviousText: (id)anObject;

Description forthcoming.


setPrototype: 

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

Description forthcoming.


setScrollable: 

- (void) setScrollable: (BOOL)flag;

Description forthcoming.


setSelectionByRect: 

- (void) setSelectionByRect: (BOOL)flag;

Description forthcoming.


setSelectionFrom: to: anchor: highlight: 

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

Description forthcoming.


setState: atRow: column: 

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

Description forthcoming.


setTabKeyTraversesCells: 

- (void) setTabKeyTraversesCells: (BOOL)flag;

Description forthcoming.


setValidateSize: 

- (void) setValidateSize: (BOOL)flag;

Description forthcoming.


sizeToCells 

- (void) sizeToCells;

Description forthcoming.


sortUsingFunction: context: 

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

Description forthcoming.


sortUsingSelector: 

- (void) sortUsingSelector: (SEL)comparator;

Description forthcoming.


tabKeyTraversesCells 

- (BOOL) tabKeyTraversesCells;

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*)aTextObject;

Description forthcoming.


textShouldEndEditing: 

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

Description forthcoming.



Up