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

# drawCell(atRow:column:)

Displays the cell at the specified row and column.

```
func drawCell(atRow row: Int, column col: Int)
```

## Parameters

`row`

The row containing the cell to draw.

`col`

The column containing the cell to draw.

## See Also

[`-  drawCell:`](/documentation/AppKit/NSControl/drawCell(_:))

Draws the specified cell, as long as it belongs to the receiver.

[`-  drawCellInside:`](/documentation/AppKit/NSControl/drawCellInside(_:))

Draws the inside of the receiver’s cell (the area within the bezel or border)



---

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)