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

# drawCell(_:)

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

## Declaration

```swift
func drawCell(_ cell: NSCell)
```

## Parameters

- `cell`: The cell to draw. If the cell does not belong to the receiver, this method does nothing.

## Discussion

Discussion This method is provided primarily to support a consistent set of methods between NSControl objects with single and multiple cells, because a control with multiple cells needs to be able to draw individual cells.

## See Also

### Deprecated Methods

- [selectedCell()](appkit/nscontrol/selectedcell().md)
- [selectedTag()](appkit/nscontrol/selectedtag().md)
- [setNeedsDisplay()](appkit/nscontrol/setneedsdisplay().md)
- [calcSize()](appkit/nscontrol/calcsize().md)
- [selectCell(_:)](appkit/nscontrol/selectcell(_:).md)
- [drawCellInside(_:)](appkit/nscontrol/drawcellinside(_:).md)
- [updateCell(_:)](appkit/nscontrol/updatecell(_:).md)
- [updateCellInside(_:)](appkit/nscontrol/updatecellinside(_:).md)
