---
title: "drawCell(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsform/drawcell(at:)"
---

# drawCell(at:)

Displays the entry at the specified index.

## Declaration

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

## Parameters

- `index`: The index of the entry to draw.

## Discussion

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

### Related Documentation

- [indexOfCell(withTag:)](appkit/nsform/indexofcell(withtag:).md)
- [indexOfSelectedItem()](appkit/nsform/indexofselecteditem().md)
