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

# column(at:)

Returns the index of the column the specified point lies in.

```
func column(at point: NSPoint) -> Int
```

## Parameters

`point`

A point in the coordinate system of the table view.

## Return Value

The index in the [`tableColumns`](/documentation/AppKit/NSTableView/tableColumns) array of the column `aPoint` lies in, or `–1` if `aPoint` lies outside the table view’s bounds.

---

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)