Page 1 of 1
[MAC] Changing application title at runtime
Posted: Sat Oct 17, 2009 3:25 am
Does anyone know of a way to change application title (i.e. what is displayed as a title for "application menu" on the top left, and also in the "Quit XXX" item)?
I found Java API for that, so clearly there is a way to do so, but C/C++ is another matter.
Posted: Sat Oct 17, 2009 5:39 am
You will have to review the Carbon API, available from Apple.
Posted: Mon Oct 19, 2009 12:04 am
Assuming you are using Xcode, just change the product name to whatever your application is. This is also located in the info.plist file.
Posted: Mon Oct 19, 2009 4:55 am
With that being said, please clarify your intentions. Do you want to set the app name at runtime or build time?
Posted: Tue Oct 20, 2009 2:47 pm
I wanted to modify application name *before starting* it. Anyway, if anyone is interested, one way to do that is by modifying Info.plist file. It's probably not the most graceful method but I haven't found another API to do so and I am not a Carbon/Cocoa expert (and neither are too many people on this list, evidently - understandably so
Replace CFBundleName value with whatever it is you want to be shown as application name, and that will be the visible name in the top menu and elsewhere. Solves the issue for me.
Posted: Wed Oct 21, 2009 3:26 am
Like I said above...