Resizing the NSMatrix
Resizing the NSMatrix
- Subject: Resizing the NSMatrix
- From: email@hidden
- Date: Fri, 7 May 2004 15:08:22 +0530
Hi,
The "renewRows: columns:" method is for resizing the matrix, but this method
doesn't change the position of the cells accordingly. For example the cell
at (0, 3) position in a (4 * 5) matrix should move to (1, 1) position when
the matrix is resized to (10 * 2).
"renewRows:columns:" creates new rows or columns but doesn't reposition the
cells.
Alternatively, I collected all the cells of the matrix to an NSArray before
resize and used that to reconstructed the matrix after resize. In this
process I used "addRowWithCells" method. But here also the cells that are
newly created appear blank and the position of the cell is not getting
changed.
Is anyone there facing the same problem?, Please give your suggestions to
overcome this problem.
Also, did anyone tried to remove a single cell from a matrix and reconstruct
the matrix?
Thanks in advance,
Regards,
Nagarajan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.