Adds a new column of cells to the right of the last column, using the given cells.
SDK
- macOS 10.0+
Framework
- App
Kit
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 (usuallyNSAction
). 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 ofCell new
.Cells
Discussion
This method redraws the receiver. Your code may need to send size
after sending this method to resize the receiver to fit the newly added cells.