---
title: "setWindowsNeedUpdate(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsapplication/setwindowsneedupdate(_:)"
---

# setWindowsNeedUpdate(_:)

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

## Declaration

```swift
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

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.

## See Also

### Updating Windows

- [updateWindows()](appkit/nsapplication/updatewindows().md)
