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

# getRow(_:column:of:)

Searches the receiver for the specified cell and returns the row and column of the cell

```
func getRow(_ row: UnsafeMutablePointer<Int>, column col: UnsafeMutablePointer<Int>, of cell: NSCell) -> Bool
```

## Parameters

`row`

On return, the row in which the cell is located.

`col`

On return, the column in which the cell is located.

`cell`

The cell to locate within the matrix.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the cell is one of the cells in the receiver, <doc://com.apple.documentation/documentation/Swift/false> otherwise.

## Discussion

.

---

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)