I’m setting up a new template and my app’s name is not automatically appearing in the About menu. I can of course add it manually, but basically I want it to change automatically whenever I rename the app. Is this possible?
It seems it should be possible as the Quit menu can do it …
Umm but … it does ?
What name are you changing that you’re not seeing it automagically change ?
If you change Build Settings > macOS > Mac App Name that is whats used and should change the About menu item automatically
basically it grabs the app name from the bundle - which you can do without a plugin if thats the way you want to go
Windows is harder since there is no bundle to read from
So a workable alternative on all platforms is to define a global constant
kAppName = "Markus App"
and then use #kAppName in the Build Settings > macOS > Mac App Name and the same for the others (except you do need a constant with multiple values but NOT a dynamic constant and the Windows one needs to have a .exe extension)
A lot of stuff like that is automatically handled by App Kit (on the macOS). I’ve tried my best to tap into it, in some cases I can get halfway there (like the Window menu), but things like this need a little extra.
I have it set-up so that it reads the app name from the NSApplication class and updates the menuitem on launch. It’s part of the code that I’m selling with this years OmegaBundle if you’re interested.
I am. However I am putting together an app template that I wanted to put on GitHub (if I ever get the hang of Git), so for myself adding commercial plugins is fine but for the open source version it’s a bit of a no-go.