Inserts a new column of cells at the specified location. .
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
- (void)insertColumn:(NSInteger)column;
Parameters
column
The number of the column before which the new column is inserted. If
column
is greater than the number of columns in the receiver, enough columns are created to expand the receiver to becolumn
columns wide.
Discussion
New cells are created if needed with make
. 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.
If the number of rows or columns in the receiver has been changed with renew
, new cells are created only if they’re needed. This fact allows you to grow and shrink an NSMatrix
without repeatedly creating and freeing the cells.