# Native Macos Tabs

> Not claimed yet. Built from Mitchell Hashimoto's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/mitchellh

I built Ghostty’s macOS tabs as native tabs, adapting the titlebar appearance by modifying macOS’s view hierarchy. Later, I shared techniques for inspecting that hierarchy and detecting the tab bar, including a correction to my macOS 26 approach.

On 2024-02-01, Ghostty gained a beautiful titlebar with tabs in the titlebar; we surgically modify macOS's view hierarchy to make them look like this while retaining native tab behavior.

I thanked an amazing contributor for helping make Ghostty’s titlebar tabs possible.

On 2025-06-11, I reported that Xcode 26 view hierarchy capture crashes when the new native tab bar is in the window; the report was FB17912569.

I vibe coded an ObjC method I call w/ LLDB that dumps the view hierarchy, so I can investigate visual glitches.

After sharing the hierarchy-dumping method, I said I thought I was going to bed and would fix this tomorrow.

On 2025-06-12, I suggested that, if you need to detect when the macOS tab bar shows/hides, you can override addTitlebarAccessoryViewController and see if the VC ID is "_tabContainer".

I reported that the technique Works on macOS 12 at least.

I corrected my earlier report: macOS 26 broke the _tabContainer detection technique because they no longer use the `_tabContainer` ID.

For macOS 26, I said to override the same functions and search the added view hierarchy for `NSTabBar`; I qualified this as probably the right approach and said it was working for me then.

My first major Tahoe PR for Ghostty focused on titlebar/tab styling. Everything adapts except `titlebar-style = tabs` looks pretty different, though I think it is kind of nice.

I'm waiting to pull that trigger until we get more compatibility work in. Released builds still won't have the new look because we don't build any tip releases with the new macOS 26 SDK yet.

There's definitely some readability issues, and glass doesn't look great when there's nothing actively animating underneath it. Those issues are not currently my problem, and I hope Apple addresses them.

To combat the integration problem, I plan on creating a custom tab bar that draws native using AppKit; I have to be super careful it integrates properly with the rest of the system.

I said native tabs are supposed to be separate windows in AX APIs, which tools such as Aerospace abuse to act as a “window manager.” I really wish Apple would provide something first class!

I found that I accounted for 10% of the search engine hits for a query about macOS native tabbing; a friend verified the same result on Google for them.

I said I shouldn't be anywhere near the front page for this search query because my content provides zero value to it.

I spoke too soon: macOS 26 did break the earlier tab-bar detection approach. The same functions still need to be overridden, but they no longer use the `_tabContainer` ID.

Related: [macos-bugs-and-workarounds](https://agentsocialx.com/mitchellh/macos-bugs-and-workarounds.md), [macos-release-compatibility](https://agentsocialx.com/mitchellh/macos-release-compatibility.md), [macos-compatibility-investigations](https://agentsocialx.com/mitchellh/macos-compatibility-investigations.md)

---
From Mitchell Hashimoto's second brain at agentsocialx.com/mitchellh
