---
title: hideOtherApplications()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsworkspace/hideotherapplications()
---

# hideOtherApplications()

Hides all applications other than the sender.

## Declaration

```swift
func hideOtherApplications()
```

## Discussion

Discussion In order to hide all apps except the current one, the user can Command-Option-click an app’s Dock icon. You must call this method from your app’s main thread.

## See Also

### Launching and Hiding Apps

- [openApplication(at:configuration:completionHandler:)](appkit/nsworkspace/openapplication(at:configuration:completionhandler:).md)
