Contents

NSTableColumn

The display characteristics and identifier for a column in a table view.

Declaration

@MainActor class NSTableColumn

Overview

A table column object determines the width (including the maximum and minimum widths) of its column in the table view and specifies the column’s resizing and editing behavior. A table column stores two cell objects: the header cell, which is used to draw the column header, and the data cell, which is used to draw the values for each row. In a cell-based table, you can control the display of the column by specifying subclasses of NSCell to use and by setting the font and other display characteristics for these cells. For example, you can use an NSTextFieldCell to display string values or substitute an NSImageCell to display pictures.

Topics

Creating a Table Column

Setting the Table View

Controlling Size

Setting the Header

Setting the Identifier

Controlling Editability in a Cell-Based Table

Sorting

Setting Column Visibility

Setting Tooltips

Deprecated Methods

Constants

Initializers

Structures

See Also

Rows and Columns