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

# cell(atRow:column:)

Returns the cell at the specified row and column.

```
func cell(atRow row: Int, column col: Int) -> NSCell?
```

## Parameters

`row`

The number of the row containing the cell to return.

`col`

The number of the column containing the cell to return.

## Return Value

The [`NSCell`](/documentation/AppKit/NSCell) object at the specified row and column location specified, or `nil` if either `row` or `column` is outside the bounds of the receiver.

## See Also

[`getRow(_:column:of:)`](/documentation/AppKit/NSMatrix/getRow(_:column:of:))

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



---

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)