---
title: "applicationWillUpdate(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsapplicationdelegate/applicationwillupdate(_:)"
---

# applicationWillUpdate(_:)

Tells the delegate that the app is about to update its windows.

## Declaration

```swift
@MainActor optional func applicationWillUpdate(_ notification: Notification)
```

## Parameters

- `notification`: A notification named doc://com.apple.appkit/documentation/AppKit/NSApplication/willUpdateNotification. Calling the doc://com.apple.documentation/documentation/Foundation/NSNotification/object method of this notification returns the NSApplication object itself.

## See Also

### Related Documentation

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

### Managing Windows

- [applicationDidUpdate(_:)](appkit/nsapplicationdelegate/applicationdidupdate(_:).md)
- [applicationShouldHandleReopen(_:hasVisibleWindows:)](appkit/nsapplicationdelegate/applicationshouldhandlereopen(_:hasvisiblewindows:).md)
