---
title: "addTabbedWindow(_:ordered:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindow/addtabbedwindow(_:ordered:)"
---

# addTabbedWindow(_:ordered:)

Adds the provided window as a new tab in a tabbed window using the specified ordering instruction.

## Declaration

```swift
func addTabbedWindow(_ window: NSWindow, ordered: NSWindow.OrderingMode)
```

## Parameters

- `window`: The window to add as a tabbed window.
- `ordered`: A value that indicates the order of the added window relative to other windows.

## See Also

### Managing Window Tabs

- [allowsAutomaticWindowTabbing](appkit/nswindow/allowsautomaticwindowtabbing.md)
- [userTabbingPreference](appkit/nswindow/usertabbingpreference-swift.type.property.md)
- [tab](appkit/nswindow/tab.md)
- [tabbingIdentifier](appkit/nswindow/tabbingidentifier-swift.property.md)
- [NSWindow.TabbingIdentifier](appkit/nswindow/tabbingidentifier-swift.typealias.md)
- [tabbingMode](appkit/nswindow/tabbingmode-swift.property.md)
- [tabbedWindows](appkit/nswindow/tabbedwindows.md)
- [mergeAllWindows(_:)](appkit/nswindow/mergeallwindows(_:).md)
- [selectNextTab(_:)](appkit/nswindow/selectnexttab(_:).md)
- [selectPreviousTab(_:)](appkit/nswindow/selectprevioustab(_:).md)
- [moveTabToNewWindow(_:)](appkit/nswindow/movetabtonewwindow(_:).md)
- [toggleTabBar(_:)](appkit/nswindow/toggletabbar(_:).md)
- [toggleTabOverview(_:)](appkit/nswindow/toggletaboverview(_:).md)
- [tabGroup](appkit/nswindow/tabgroup.md)
