Textured Tabbed Windows

from blog The Desolation of Blog, | ↗ original
I didn't want to begin a paragraph, much less a whole article, with a lowercase character, so this is an unnecessary lead-in to what I originally wanted to say: macOS 10.12 Sierra has introduced a new feature called automatic window tabbing. Apple's SOP nowadays is to make new mac features — err, Mac features — opt-out rather than opt-in. Thus, automatic window tabbing is supposed to Just Work.™ In other words, it almost just works. I discovered through the magic of git-bisect that automatic window tabbing does not work when you programmatically create a textured window. The main menu items "Show Tab Bar", "Merge All Windows", etc., are never enabled for the window. Textured windows, which do not have a toolbar at all (or from another perspective, have toolbar all the way down), are specified by the style mask NSTexturedBackgroundWindowMask. Rather, they were specified by NSTexturedBackgroundWindowMask until that was deprecated in favor of NSWindowStyleMaskTexturedBackground, because why not.