<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableColumn/init(identifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTableColumn(im)initWithIdentifier:"
  },
  "title" : "init(identifier:)"
}
-->

# init(identifier:)

Initializes a newly created table column with a string identifier.

```
init(identifier: NSUserInterfaceItemIdentifier)
```

## Parameters

`identifier`

The string identifier for the column.

## Return Value

An initialized table column instance with an [`NSTextFieldCell`](/documentation/AppKit/NSTextFieldCell) instance as its default cell.

## Discussion

You can set the table column title using the [`title`](/documentation/AppKit/NSTableColumn/title) property.

This method is the designated initializer for the `NSTableColumn` class.

## See Also

[`NSTableView`](/documentation/AppKit/NSTableView)

A set of related records, displayed in rows that represent individual records and columns that represent the attributes of those records.

[`identifier`](/documentation/AppKit/NSTableColumn/identifier)

The identifier string for the table column.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)