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

# getRow(_:column:for:)

Gets the row and column coordinates for the specified point, if a cell exists at that point.

```
func getRow(_ row: UnsafeMutablePointer<Int>?, column: UnsafeMutablePointer<Int>?, for point: NSPoint) -> Bool
```

## Parameters

`row`

On output, the row number of the cell at the specified point, or `-1` if there is no cell at the point.

`column`

On output, he column number of the cell at the specified point, or `-1` if there is no cell at the point.

`point`

The point to test.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if a cell exists at the specified point; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

If a row does not exist at `point`, then `-1` is set for the row. If a column does not exist at `point`, then `-1` is set for the 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)