---
title: showWindows()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsdocument/showwindows()
---

# showWindows()

Displays all of the document’s windows, bringing them to the front and making them main or key as necessary.

## Declaration

```swift
func showWindows()
```

## See Also

### Managing Document Windows

- [setWindow(_:)](appkit/nsdocument/setwindow(_:).md)
- [windowForSheet](appkit/nsdocument/windowforsheet.md)
- [displayName](appkit/nsdocument/displayname.md)
- [defaultDraftName()](appkit/nsdocument/defaultdraftname().md)
- [encodeRestorableState(with:backgroundQueue:)](appkit/nsdocument/encoderestorablestate(with:backgroundqueue:).md)
