---
title: "column(withIdentifier:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableview/column(withidentifier:)"
---

# column(withIdentifier:)

Returns the index of the first column in the table view whose identifier is equal to the specified identifier.

## Declaration

```swift
func column(withIdentifier identifier: NSUserInterfaceItemIdentifier) -> Int
```

## Parameters

- `identifier`: A column identifier.

## Return Value

Return Value The index in the tableColumns array of the first column in the table view whose identifier is equal to anObject (when compared using isEqual:), or –1 if no columns are found with the specified identifier.

## See Also

### Column Management

- [addTableColumn(_:)](appkit/nstableview/addtablecolumn(_:).md)
- [removeTableColumn(_:)](appkit/nstableview/removetablecolumn(_:).md)
- [moveColumn(_:toColumn:)](appkit/nstableview/movecolumn(_:tocolumn:).md)
- [tableColumns](appkit/nstableview/tablecolumns.md)
- [tableColumn(withIdentifier:)](appkit/nstableview/tablecolumn(withidentifier:).md)
