<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSApplicationDelegate/application(_:didUpdate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSApplicationDelegate(im)application:didUpdateUserActivity:"
  },
  "title" : "application(_:didUpdate:)"
}
-->

# application(_:didUpdate:)

Tells the delegate that there are changes to the specified activity.

```
@MainActor optional func application(_ application: NSApplication, didUpdate userActivity: NSUserActivity)
```

## Parameters

`application`

The shared app object.

`userActivity`

The user activity object that was updated.

## Discussion

This method is called when any user activity managed by AppKit has been updated. Use this as a last chance to add additional data to the user activity object.

---

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)