macOS 26.4
/Users/hirai/Desktop/スクリーンショット 2026-06-12 1.25.54.png
macOS 27.0 beta
/Users/hirai/Desktop/スクリーンショット 2026-06-12 1.26.08.png
It dose not display toolbar item title.
And the Liquid Glass display looks strange.
@interface AppDelegate ()
@property (strong) IBOutlet NSWindow *window;
@end
@implementation AppDelegate
-
(void)applicationDidFinishLaunching:(NSNotification *)aNotification {
for(NSToolbarItem* toolbarItem in _toolbar.items){
switch (toolbarItem.tag) {
case 1:{
_toolbarItemCrystalModelIdentifier = toolbarItem.itemIdentifier;
}break;
case 2:{
_toolbarItemDiffractometerIdentifier = toolbarItem.itemIdentifier;
}break;
}
}
_selectableToolbarItems = @[_toolbarItemCrystalModelIdentifier,
_toolbarItemDiffractometerIdentifier];
}
-
(NSArray<NSString*>*)toolbarSelectableItemIdentifiers:(NSToolbar *)toolbar
{
return _selectableToolbarItems;
}
@end
Comment out → Display toolbar title.
Line : _toolbarItemCrystalModelIdentifier = toolbarItem.itemIdentifier;
Lines : toolbarSelectableItemIdentifiers