---
title: hide()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsrunningapplication/hide()
---

# hide()

Attempts to hide or the application.

## Declaration

```swift
func hide() -> Bool
```

## Mentioned in

Passing control from one app to another with cooperative activation

## Return Value

Return Value true if the application was successfully hidden, otherwise false.

## Discussion

Discussion The property of this value will be false if the application has already quit, or if of a type that is unable to be hidden.

## See Also

### Hiding and unhiding applications

- [unhide()](appkit/nsrunningapplication/unhide().md)
- [isHidden](appkit/nsrunningapplication/ishidden.md)
