modified and tried the “given” example
Are you referring to the Menus Demo in the DemoRunner? I think I got my menubars in my app, and my plugin, working by examining this and incorporating examples from it.
But if I recall, I also looked at the Projucer source code extensively for how to get it all working. That’s a great place to look.
There are a lot of inter-related pieces to the puzzle. It’s really quite complicated, with the ApplicationCommandTargets, MenuBarModels, etc. More so than it should be… but what do I know…