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

# setWindowsNeedUpdate(_:)

Sets whether the receiver’s windows need updating when the receiver has finished processing the current event.

```
func setWindowsNeedUpdate(_ needUpdate: Bool)
```

## Parameters

`needUpdate`

If <doc://com.apple.documentation/documentation/Swift/true>, the receiver’s windows are updated after an event is processed.

## Discussion

This method is especially useful for making sure menus are updated to reflect changes not initiated by user actions, such as messages received from remote objects.

---

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)