Instance Method

setCellAttribute(_:to:)

Sets the value for the specified cell attribute.

Declaration

func setCellAttribute(_ parameter: NSCell.Attribute, to value: Int)

Parameters

aParameter

The cell attribute whose value you want to set. Attributes include the receiver's current state and whether it is disabled, editable, or highlighted.

value

The new value for the attribute.

See Also

Managing Cell Attributes

func cellAttribute(NSCell.Attribute) -> Int

Returns the value for the specified cell attribute.

var type: NSCell.CellType

The type of the cell.

var isEnabled: Bool

A Boolean value indicating whether the cell is currently enabled.

var allowsUndo: Bool

A Boolean value indicating whether the cell assumes responsibility for undo operations.