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

# setNeedsDisplay()

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

```
func setNeedsDisplay()
```

## Discussion

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

## See Also

[`needsDisplay`](/documentation/AppKit/NSView/needsDisplay)

A Boolean value that determines whether the view needs to be redrawn before being displayed.



---

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)