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

# deactivate()

Deactivates the receiver.

```
func deactivate()
```

## Discussion

Normally, you shouldn’t invoke this method—AppKit is responsible for proper deactivation.

## See Also

[`func activate(ignoringOtherApps: Bool)`](/documentation/AppKit/NSApplication/activate(ignoringOtherApps:))

Makes the receiver the active app.



---

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)