---
title: "addWindow(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindowtabgroup/addwindow(_:)"
---

# addWindow(_:)

Adds a window to the tab group.

## Declaration

```swift
func addWindow(_ window: NSWindow)
```

## Parameters

- `window`: The window to append to the tab group.

## Discussion

Discussion This method appends the window to the end of the tab group. If the window is already a member of another tab group, it is first removed from that group.

## See Also

### Managing Tabbed Windows

- [windows](appkit/nswindowtabgroup/windows.md)
- [selectedWindow](appkit/nswindowtabgroup/selectedwindow.md)
- [insertWindow(_:at:)](appkit/nswindowtabgroup/insertwindow(_:at:).md)
- [removeWindow(_:)](appkit/nswindowtabgroup/removewindow(_:).md)
