更新时间:2023-01-05 10:03:26
在10.12上,由于默认情况下选项卡栏现在可用,因此在创建窗口时,您现在需要设置以下内容:
On 10.12, you need to now set the following when the window is created as Tab Bar is now available by default:
[NSWindow setAllowsAutomaticWindowTabbing: NO];
如何在Sierra应用程序中禁用“显示选项卡栏"菜单选项?
如何在SwiftUI中禁用显示选项卡栏菜单选项