<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableView/tableColumn(withIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTableView(im)tableColumnWithIdentifier:"
  },
  "title" : "tableColumn(withIdentifier:)"
}
-->

# tableColumn(withIdentifier:)

Returns the `NSTableColumn` object for the first column whose identifier is equal to the specified object.

```
func tableColumn(withIdentifier identifier: NSUserInterfaceItemIdentifier) -> NSTableColumn?
```

## Parameters

`identifier`

A column identifier.

## Return Value

The `NSTableColumn` object for the first column whose identifier is equal to `anObject` (when compared using `isEqual:`), or `nil` if no columns are found with the specified identifier.

---

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)