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

# activeApplication()

Returns a dictionary with information about the current active app.

```
func activeApplication() -> [AnyHashable : Any]?
```

## Return Value

A dictionary with information about the app. The dictionary contains as many of the keys described in [Deprecated Symbols](/documentation/AppKit/deprecated-symbols) as are available.

---

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)