---
title: setNeedsDisplay()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nscontrol/setneedsdisplay()
---

# setNeedsDisplay()

Marks the receiver as needing redisplay (assuming automatic display is enabled).

## Declaration

```swift
func setNeedsDisplay()
```

## Discussion

Discussion This method also recalculates the dimensions of the control as needed.

## See Also

### Related Documentation

- [needsDisplay](appkit/nsview/needsdisplay.md)

### Deprecated Methods

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