ftp.nice.ch/pub/next/developer/resources/classes/VarMatrix.s.tar.gz#/Matrix

IB.proj
 
Makefile
 
Matrix.iconheader
 

Matrix.nib


 
Matrix_main.m
[View Matrix_main.m] 
MyMatrix.m
[View MyMatrix.m] 
MyObject.h
[View MyObject.h] 
MyObject.m
[View MyObject.m] 
README
 
VarMatrix.h
[View VarMatrix.h] 
VarMatrix.m
[View VarMatrix.m] 

README

The VarMatrix class is a subclass of Matrix that allows variable sized columns and rows.  However the overall shape of the matrix has to be a rectangle.  For example,

----------------------
|  |          |   |   |
-----------------------
|  |          |   |   |
-----------------------
|  |          |   |   |
|  |          |   |   |
-----------------------
|  |          |   |   |
-----------------------

Column 2 and Row 3 have different sizes from the rest.

Full functionality of Matrix class should be available since VarMatrix is a subclass.  Not all methods of Matrix class have been tested.  If you find a bug, please send me e-mail (cooldude@leland.stanford.edu) and I will fix it.  If you can fix it yourself, send me the new code so I can mail revisions to other people.

An example program is also included which shows how to use the class.  Basically you need to know 2 new calls.

-setWidth:(float)width forCol:(int)col;
-setHeight:(float)height forRow:(int)theRow;

They change the width of a column and the height of a row.

Future: I am planning to make this class into an IB palette that you could use from inside Interface builder.
	I am going to add the functionality to have cells of different type in this matrix.

This class is FREEWARE.  All the standard stuff applies.  You are free to use it as you wish. If you decide to use it, I would like to hear from you.  Just send me email.

Enjoy,

Imran

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.