Page 1 of 1
How to set the program name menu
Posted: Wed Dec 05, 2018 10:06 am
by coco2
I have just acquired a Mac and been trying out PB and am wondering how I set the name of the menu that is next to the apple logo? Like when I run a PureBasic program it shows as "PureBasic.0". I searched for this on the forum and could not find it sorry.
Re: How to set the program name menu
Posted: Wed Dec 05, 2018 10:42 am
by Shardik
"PureBasic.0" is only displayed as the menu text next to the apple logo when running the program from the IDE. As soon as you have compiled an .app file and you start your .app file, the menu title is changed to the name of your .app file.
Re: How to set the program name menu
Posted: Wed Dec 05, 2018 11:14 am
by coco2
It displays the filename you give it at compile time. If I rename the file it doesn't change. Is this really how we name that menu? Done by the compiler?
Re: How to set the program name menu
Posted: Wed Dec 05, 2018 11:28 am
by Wolfram
The name in the menu comes from the info.plist file. The item. is. called "CFBundleName".
Re: How to set the program name menu
Posted: Wed Dec 05, 2018 12:42 pm
by coco2
Do you have any information on how to use it in PB? I googled and couldn't figure out how to use it.
Re: How to set the program name menu
Posted: Wed Dec 05, 2018 4:48 pm
by Wolfram
If you use "create Executeable..." from the Compiler menu you will be ask for the program name and where to save it.
This name will be the name in the menu, because PB generates a info.plist file for your program.
If you want to edit this name, right click on you program an choose "show packet content", open the folder "Content" and open the "info.plist" file.
A good choice to edit .plist files is PlistEdit.
Re: How to set the program name menu
Posted: Thu Dec 06, 2018 10:37 am
by coco2
Thanks, I'm very new at Mac.