Founding sponsorYour name here
Notes
GroceriesIdeas

Hover a number — every part of the window chrome has a real name

Mac Window

/ NSWindow · WindowGroup /

also called app window, document window, NSWindow, window frame

A Mac window is the movable, usually resizable frame that holds one app surface. Its top chrome can combine a draggable title bar, title, toolbar, accessories, and document tabs, while the red, yellow, and green traffic lights remain their own standard controls. Window tabs belong to the frame and group separate windows; an in-content tab view only switches content inside one window.

If you called it…

the whole mac app box on screenthe top of the window where you can drag itthe little control inside the title bara button next to the traffic lightsthe tabs built into the mac window framethe tiny corner grip for resizing the window

…you meant a mac window.

Anatomy — every part, named

  1. 1
    Title barNSWindow.titleVisibility

    “The strip across the top of the window” is the title bar, which can remain present even when its title text is hidden.

  2. 2
    Window drag regionNSWindow.isMovableByWindowBackground

    The blank area you grab to move the window is its drag region, not necessarily the visible title text.

  3. 3
    Window titleNSWindow.title

    The document or screen name printed in the title bar is the window title.

  4. 4
    Unified toolbarNSWindow.ToolbarStyle.unified

    When the title and window actions share one top row, that chrome uses the unified toolbar style.

  5. 5
    Toolbar itemNSToolbarItem

    One button, field, or flexible space placed in the window toolbar is a toolbar item.

  6. 6
    Title-bar accessoryNSTitlebarAccessoryViewController

    “The little control inside the title bar” is a title-bar accessory, separate from both the toolbar and traffic lights.

  7. 7
    Title-bar separatorNSWindow.titlebarSeparatorStyle

    The hairline between the window's top chrome and its content is the title-bar separator.

  8. 8
    Window tabsNSWindowTabGroup

    Tabs in the window frame group separate document windows; they are not an NSTabView inside the content area.

  9. 9
    Resize edge / cornerNSWindow.StyleMask.resizable

    “The tiny corner grip” means the resize edge or corner, which may be interactive even when no grip is drawn.

Prompt — paste into your agent

Build this as a native Mac Window (NSWindow; SwiftUI: Window or WindowGroup). Distinguish the draggable title-bar region from NSWindow.title, use an NSToolbar for unified chrome, attach custom title-bar controls with NSTitlebarAccessoryViewController, and preserve native window tabs and resize edges.

Debug prompt — when it misbehaves

Paste this, then describe what you’re seeing — it hands your agent the classic failure modes to rule out first.

Debug my macOS window (NSWindow). Rule out: content underlapping the title bar because fullSizeContentView plus transparent title bar is set; the window not draggable where expected — isMovableByWindowBackground vs a draggable title bar area; keystrokes going nowhere because the first responder was cleared; frame autosave restoring an old position over your manual setFrame. The symptom:

In code

The exact names this thing goes by in code — each row is one framework’s word for it. Use the row that matches your project (or paste it into your prompt).

AppKitNSWindow
SwiftUIWindowGroup
SwiftUIWindow
AppKitNSWindowController

See also

Search

Describe the UI element you're thinking of