How to set the program name menu

Mac OSX specific forum
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

How to set the program name menu

Post 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.
User avatar
Shardik
Addict
Addict
Posts: 1989
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: How to set the program name menu

Post 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.
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: How to set the program name menu

Post 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?
Wolfram
Enthusiast
Enthusiast
Posts: 568
Joined: Thu May 30, 2013 4:39 pm

Re: How to set the program name menu

Post by Wolfram »

The name in the menu comes from the info.plist file. The item. is. called "CFBundleName".
macOS Catalina 10.15.7
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: How to set the program name menu

Post 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.
Wolfram
Enthusiast
Enthusiast
Posts: 568
Joined: Thu May 30, 2013 4:39 pm

Re: How to set the program name menu

Post 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.
macOS Catalina 10.15.7
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: How to set the program name menu

Post by coco2 »

Thanks, I'm very new at Mac.
Post Reply