Application Title on MacOS

Just starting out? Need help? Post your questions and find answers here.
wayne-c
Enthusiast
Enthusiast
Posts: 335
Joined: Tue Jun 08, 2004 10:29 am
Location: Zurich, Switzerland

Application Title on MacOS

Post by wayne-c »

How can I set the Title for my application that is displayed in the Mac main Menubar? It takes the file name, but this is all lowercase; is there a way (CocoaMessage?) to change the title manually?

Thank you in advance,
kind regards
As you walk on by, Will you call my name? Or will you walk away?
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Application Title on MacOS

Post by TI-994A »

wayne-c wrote:How can I set the Title for my application that is displayed in the Mac main Menubar? It takes the file name, but this is all lowercase; is there a way (CocoaMessage?) to change the title manually?
Yes, but only manually.

1. Right click on the app file name in Finder (MacOS file explorer).
2. Select Show Package Contents from the context menu that appears.
3. Go into the Contents folder (by double-clicking it).
4. Open the file Info.plist with your editor of choice (by right-clicking on Info.plist and selecting the preferred editor in the Open With... menu).
5. Insert the following key/value entry, preferably at the end, just before the last </dict> tag. Be careful not to place it in between other key/value entries.

Code: Select all

<key>CFBundleName</key>
<string>The Title To Display</string>
6. It should look something like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer...
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    ...
    ...
    ...
    <key>Some other key</key>
    <string>some other value</string>
    <key>CFBundleName</key>
    <string>The Title To Display</string>
</dict>
</plist>
Save the file, and that's it! The new title should be displayed on the topmost menubar when the app is running.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
wayne-c
Enthusiast
Enthusiast
Posts: 335
Joined: Tue Jun 08, 2004 10:29 am
Location: Zurich, Switzerland

Re: Application Title on MacOS

Post by wayne-c »

@TI-994A : thank you
@Fred : could this be integrated in the process of creating the app bundle directly?
As you walk on by, Will you call my name? Or will you walk away?
Wolfram
Enthusiast
Enthusiast
Posts: 568
Joined: Thu May 30, 2013 4:39 pm

Re: Application Title on MacOS

Post by Wolfram »

macOS Catalina 10.15.7
Post Reply