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

# yieldActivation(toApplicationWithBundleIdentifier:)

Explicitly allows another app to make itself active.

```
func yieldActivation(toApplicationWithBundleIdentifier bundleIdentifier: String)
```

## Parameters

`bundleIdentifier`

The bundle identifier to yield activation state to.

## Discussion

Calling this method doesn’t deactivate the yielding app, nor does it activate the  app you yield to. For cooperative activation, the other app must request activation in the future by calling [`activate()`](/documentation/AppKit/NSApplication/activate()) or equivalent.

Use this method to yield activation to apps that aren’t running at the time the method invokes. If it’s known that the target application is running, use [`yieldActivation(to:)`](/documentation/AppKit/NSApplication/yieldActivation(to:)) instead.

---

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)