makeCell(atRow:column:)
Creates a new cell at the location specified by the given row and column in the receiver.
Declaration
func makeCell(atRow row: Int, column col: Int) -> NSCellParameters
- row:
The row in which to create the new cell.
- col:
The column in which to create the new cell.
Return Value
The newly created cell.
Discussion
If the receiver has a prototype cell, it’s copied to create the new cell. If not, and if the receiver has a cell class set, it allocates and initializes (with init) an instance of that class. If the receiver hasn’t had either a prototype cell or a cell class set, NSMatrix creates an NSActionCell.
Your code should never invoke this method directly; it’s used by addRow() and other methods when a cell must be created. It may be overridden to provide more specific initialization of cells.