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
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


Instance Variables

Method summary

cellClass 

+ (Class) cellClass;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setCellClass: 

+ (void) setCellClass: (Class)classId;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


acceptsFirstMouse: 

- (BOOL) acceptsFirstMouse: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


action 

- (SEL) action;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


addColumn 

- (void) addColumn;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


addColumnWithCells: 

- (void) addColumnWithCells: (NSArray*)cellArray;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


addRow 

- (void) addRow;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


addRowWithCells: 

- (void) addRowWithCells: (NSArray*)cellArray;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


allowsEmptySelection 

- (BOOL) allowsEmptySelection;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


autosizesCells 

- (BOOL) autosizesCells;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


backgroundColor 

- (NSColor*) backgroundColor;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


cellAtRow: column: 

- (id) cellAtRow: (int)row column: (int)column;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


cellBackgroundColor 

- (NSColor*) cellBackgroundColor;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


cellClass 

- (Class) cellClass;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


cellFrameAtRow: column: 

- (NSRect) cellFrameAtRow: (int)row column: (int)column;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


cellSize 

- (NSSize) cellSize;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


cellWithTag: 

- (id) cellWithTag: (int)anInt;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


cells 

- (NSArray*) cells;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


delegate 

- (id) delegate;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


deselectAllCells 

- (void) deselectAllCells;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


deselectSelectedCell 

- (void) deselectSelectedCell;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


doubleAction 

- (SEL) doubleAction;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


drawCellAtRow: column: 

- (void) drawCellAtRow: (int)row column: (int)column;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


drawsBackground 

- (BOOL) drawsBackground;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


drawsCellBackground 

- (BOOL) drawsCellBackground;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


errorAction 

- (SEL) errorAction;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


getNumberOfRows: columns: 

- (void) getNumberOfRows: (int*)rowCount columns: (int*)columnCount;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


getRow: column: forPoint: 

- (BOOL) getRow: (int*)row column: (int*)column forPoint: (NSPoint)aPoint;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


getRow: column: ofCell: 

- (BOOL) getRow: (int*)row column: (int*)column ofCell: (NSCell*)aCell;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


highlightCell: atRow: column: 

- (void) highlightCell: (BOOL)flag atRow: (int)row column: (int)column;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


initWithFrame: 

- (id) initWithFrame: (NSRect)frameRect;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


initWithFrame: mode: cellClass: numberOfRows: numberOfColumns: 

- (id) initWithFrame: (NSRect)frameRect mode: (int)aMode cellClass: (Class)classId numberOfRows: (int)rowsHigh numberOfColumns: (int)colsWide;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


initWithFrame: mode: prototype: numberOfRows: numberOfColumns: 

- (id) initWithFrame: (NSRect)frameRect mode: (int)aMode prototype: (NSCell*)aCell numberOfRows: (int)rowsHigh numberOfColumns: (int)colsWide;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


insertColumn: 

- (void) insertColumn: (int)column;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


insertColumn: withCells: 

- (void) insertColumn: (int)column withCells: (NSArray*)cellArray;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


insertRow: 

- (void) insertRow: (int)row;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


insertRow: withCells: 

- (void) insertRow: (int)row withCells: (NSArray*)cellArray;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


intercellSpacing 

- (NSSize) intercellSpacing;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


isAutoscroll 

- (BOOL) isAutoscroll;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


isSelectionByRect 

- (BOOL) isSelectionByRect;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


keyCell 

- (id) keyCell;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


makeCellAtRow: column: 

- (NSCell*) makeCellAtRow: (int)row column: (int)column;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


mode 

- (NSMatrixMode) mode;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


mouseDown: 

- (void) mouseDown: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


mouseDownFlags 

- (int) mouseDownFlags;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


nextText 

- (id) nextText;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


numberOfColumns 

- (int) numberOfColumns;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


numberOfRows 

- (int) numberOfRows;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


performKeyEquivalent: 

- (BOOL) performKeyEquivalent: (NSEvent*)theEvent;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


previousText 

- (id) previousText;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


prototype 

- (id) prototype;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


putCell: atRow: column: 

- (void) putCell: (NSCell*)newCell atRow: (int)row column: (int)column;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


removeColumn: 

- (void) removeColumn: (int)column;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


removeRow: 

- (void) removeRow: (int)row;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


renewRows: columns: 

- (void) renewRows: (int)newRows columns: (int)newColumns;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


resetCursorRects 

- (void) resetCursorRects;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


scrollCellToVisibleAtRow: column: 

- (void) scrollCellToVisibleAtRow: (int)row column: (int)column;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectAll: 

- (void) selectAll: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectCellAtRow: column: 

- (void) selectCellAtRow: (int)row column: (int)column;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectCellWithTag: 

- (BOOL) selectCellWithTag: (int)anInt;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectText: 

- (void) selectText: (id)sender;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectTextAtRow: column: 

- (id) selectTextAtRow: (int)row column: (int)column;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectedCell 

- (id) selectedCell;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectedCells 

- (NSArray*) selectedCells;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectedColumn 

- (int) selectedColumn;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


selectedRow 

- (int) selectedRow;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


sendAction 

- (BOOL) sendAction;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


sendAction: to: forAllCells: 

- (void) sendAction: (SEL)aSelector to: (id)anObject forAllCells: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


sendDoubleAction 

- (void) sendDoubleAction;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setAction: 

- (void) setAction: (SEL)aSelector;
Availability: Not in OpenStep/MacOS-X

Sets the message to send when a single click occurs.


setAllowsEmptySelection: 

- (void) setAllowsEmptySelection: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X

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;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setAutosizesCells: 

- (void) setAutosizesCells: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setBackgroundColor: 

- (void) setBackgroundColor: (NSColor*)aColor;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setCellBackgroundColor: 

- (void) setCellBackgroundColor: (NSColor*)aColor;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setCellClass: 

- (void) setCellClass: (Class)classId;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setCellSize: 

- (void) setCellSize: (NSSize)aSize;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setDelegate: 

- (void) setDelegate: (id)anObject;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setDoubleAction: 

- (void) setDoubleAction: (SEL)aSelector;
Availability: Not in OpenStep/MacOS-X

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;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setDrawsCellBackground: 

- (void) setDrawsCellBackground: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X

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;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setIntercellSpacing: 

- (void) setIntercellSpacing: (NSSize)aSize;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setKeyCell: 

- (void) setKeyCell: (NSCell*)aCell;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setMode: 

- (void) setMode: (NSMatrixMode)aMode;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setNextText: 

- (void) setNextText: (id)anObject;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setPreviousText: 

- (void) setPreviousText: (id)anObject;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setPrototype: 

- (void) setPrototype: (NSCell*)aCell;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setScrollable: 

- (void) setScrollable: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setSelectionByRect: 

- (void) setSelectionByRect: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setSelectionFrom: to: anchor: highlight: 

- (void) setSelectionFrom: (int)startPos to: (int)endPos anchor: (int)anchorPos highlight: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setState: atRow: column: 

- (void) setState: (int)value atRow: (int)row column: (int)column;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setTabKeyTraversesCells: 

- (void) setTabKeyTraversesCells: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setValidateSize: 

- (void) setValidateSize: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


sizeToCells 

- (void) sizeToCells;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


sortUsingFunction: context: 

- (void) sortUsingFunction: (int(*)(id element1,id element2,void*userData))comparator context: (void*)context;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


sortUsingSelector: 

- (void) sortUsingSelector: (SEL)comparator;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


tabKeyTraversesCells 

- (BOOL) tabKeyTraversesCells;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


textDidBeginEditing: 

- (void) textDidBeginEditing: (NSNotification*)aNotification;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


textDidChange: 

- (void) textDidChange: (NSNotification*)aNotification;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


textDidEndEditing: 

- (void) textDidEndEditing: (NSNotification*)aNotification;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


textShouldBeginEditing: 

- (BOOL) textShouldBeginEditing: (NSText*)aTextObject;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


textShouldEndEditing: 

- (BOOL) textShouldEndEditing: (NSText*)aTextObject;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.




Instance Variables for NSMatrix 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.


_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.


_autoscroll

@protected BOOL _autoscroll;

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.


_autosizesCells

@protected BOOL _autosizesCells;

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.


_cellBackgroundColor

@protected NSColor* _cellBackgroundColor;

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.


_cellClass

@protected Class _cellClass;

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.


_cellInit

@protected IMP _cellInit;

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.


_cellNew

@protected IMP _cellNew;

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.


_cellPrototype

@protected id _cellPrototype;

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.


_cellSize

@protected NSSize _cellSize;

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.


_cells

@protected id** _cells;

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.


_dottedColumn

@protected int _dottedColumn;

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.


_dottedRow

@protected int _dottedRow;

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.


_drawsBackground

@protected BOOL _drawsBackground;

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.


_drawsCellBackground

@protected BOOL _drawsCellBackground;

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.


_errorAction

@protected SEL _errorAction;

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.


_intercell

@protected NSSize _intercell;

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.


_maxCols

@protected int _maxCols;

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.


_maxRows

@protected int _maxRows;

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.


_mode

@protected NSMatrixMode _mode;

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.


_myZone

@protected NSZone* _myZone;

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.


_numCols

@protected int _numCols;

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.


_numRows

@protected int _numRows;

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.


_reserved1

@protected id _reserved1;

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.


_selectedCell

@protected id _selectedCell;

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.


_selectedCells

@protected BOOL** _selectedCells;

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.


_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.


_selectionByRect

@protected BOOL _selectionByRect;

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.


_tabKeyTraversesCells

@protected BOOL _tabKeyTraversesCells;

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.






Up