Very, very confused about custom menus in macOS. Do they work or not? #13195
-
I've read in several places that the menu bar can't be customized in MacOS, or that you can only customize the menu under the application name. But I'm not sure if it still happening with Tauri 2. I've even read a closed bug about it (#11422), but after reading it carefullly I don't understand if it's solved or if it doesn't work but wasn't documented. But, however, I have seen applications that do have customized menu on Mac, both large, like the famous GitButler or small, like Museeks, announced in January right here. I've tried reading the source code, but everything is still out of my reach. Are those applications with custom menus doing some magic out of the standard Tauri? What I need is a standard menu bar, like the one generated by Tauri by default, with Apple menu, App menu, File, Edit, View, Window, Help... and then add very own custom menus with custom items. I have tried the examples in the documentation and some tutorial, but the only thing I have got, by chance, is the apple menu with some items, but nothing else. Any guidance (code example, link, tutorial, video, doc...) will be greatly appreciated. I would never have imagined that something so basic would be a show stopper. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I finally managed to do it, so... you can do it! But I had a hard time with the documentation and the confusion with what differentiates the macOS menu. I have managed to do it using as a base an application with menus to go “peeling” code until I was left with something that I could integrate in my code. |
Beta Was this translation helpful? Give feedback.
I finally managed to do it, so... you can do it!
But I had a hard time with the documentation and the confusion with what differentiates the macOS menu.
I have managed to do it using as a base an application with menus to go “peeling” code until I was left with something that I could integrate in my code.