addColumn(with:)
Adds a new column of cells to the right of the last column, using the given cells.
Declaration
func addColumn(with newCells: [NSCell])Parameters
- newCells:
An array of objects to use when filling the new column starting with the object at index 0. Each object in should be an instance of Nscell or one of its subclasses (usually Nsactioncell). The array should have a sufficient number of cells to fill the entire column. Extra cells are ignored, unless the matrix is empty. In that case, a matrix is created with one column and enough rows for all the elements of
newCells.
Discussion
This method redraws the receiver. Your code may need to send sizeToCells() after sending this method to resize the receiver to fit the newly added cells.