FSMatrix


Inherits From:
NSControl
Declared In:
FSMatrix.h


Class Description

FSMatrix can use flexible space for rows and columns.


Instance Variables

id<FSMatrixDataSource> _dataSource;
int _numRows;
int _numCols;
float *_colWidths;
float *_rowHeights;
BOOL _isHeader;
BOOL _isEditing;
FSCell _editorCell;
BOOL _vRezAllowed;
BOOL _hRezAllowed;

_dataSourcewhere the data comes from
_numRowsnumber of rows, cached from DS
_numColsnumber of columns, cached from DS
_colWidthscolumn sizes, cached from DS
_rowHeightsrow sizes, cached from DS
_isHeaderheader matrix has different look
_isEditingis the field editor active?
_editorCellthe cell that is being edited
_vRezAllowedvertical resizing of cells is allowed
_hRezAllowedhorizontal resizing of cells is allowed


Method Types

- frameForRow:column:
- widthForColumn:
- heightForRow:
- reloadData
- reloadColumnWidthsInRange:
- reloadRowHeightsInRange:
- dataSource
- setDataSource:
- isHeaderMatrix
- setHeaderMatrix:
- numberOfRows
- numberOfColumns
- startEditingCell:withEvent:
- _editCell:selectAll:
- _endEditing
- cellAtPoint:
- cellAtPoint:origin:

Instance Methods

_editCell:selectAll:

- (BOOL)_editCell:(FSCell)cell selectAll:(BOOL)select

No method description.


_endEditing

- (BOOL)_endEditing

No method description.


cellAtPoint:

- (FSCell)cellAtPoint:(NSPoint)point

Selection logic: has been moved to data source.


cellAtPoint:origin:

- (FSCell)cellAtPoint:(NSPoint)point origin:(NSPoint*)origin

No method description.


dataSource

- (id<FSMatrixDataSource>)dataSource

No method description.


frameForRow:column:

- (NSRect)frameForRow:(int)row column:(int)col

No method description.


heightForRow:

- (float)heightForRow:(int)row

No method description.


isHeaderMatrix

- (BOOL)isHeaderMatrix

No method description.


numberOfColumns

- (int)numberOfColumns

No method description.


numberOfRows

- (int)numberOfRows

No method description.


reloadColumnWidthsInRange:

- (void)reloadColumnWidthsInRange:(NSRange)columns

No method description.


reloadData

- (void)reloadData

No method description.


reloadRowHeightsInRange:

- (void)reloadRowHeightsInRange:(NSRange)rows

No method description.


setDataSource:

- (void)setDataSource:(id<FSMatrixDataSource>)dataSource

No method description.


setHeaderMatrix:

- (void)setHeaderMatrix:(BOOL)flag

No method description.


startEditingCell:withEvent:

- (void)startEditingCell:(FSCell)cell withEvent:(NSEvent*)event

Should be called only when a valid selection exists.


widthForColumn:

- (float)widthForColumn:(int)col

No method description.


Version 1.1 Copyright ©2002 by Stefan Leuker. All Rights Reserved.