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

# drawCell(at:)

Displays the entry at the specified index.

```
func drawCell(at index: Int)
```

## Parameters

`index`

The index of the entry to draw.

## Discussion

Because this method is called automatically whenever a cell needs drawing, you never need to invoke it explicitly. It is included in the API so you can override it if you subclass `NSFormCell`.

## See Also

[`func indexOfCell(withTag: Int) -> Int`](/documentation/AppKit/NSForm/indexOfCell(withTag:))

Returns the index of the entry whose tag is `tag`.

[`func indexOfSelectedItem() -> Int`](/documentation/AppKit/NSForm/indexOfSelectedItem())

Returns the index of the selected entry.



---

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)