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

# updateCell(_:)

Marks the specified cell as in need of redrawing.

## Declaration

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

## Parameters

- `cell`: The cell to redraw.

## Discussion

Discussion If the cell currently has the focus, this method updates the cell’s focus ring; otherwise, the entire cell is marked as needing redisplay. The cell is redrawn during the next update cycle.

## 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)
- [drawCell(_:)](appkit/nscontrol/drawcell(_:).md)
- [drawCellInside(_:)](appkit/nscontrol/drawcellinside(_:).md)
- [updateCellInside(_:)](appkit/nscontrol/updatecellinside(_:).md)
