Results 1 to 5 of 5

Thread: Changing the name of the application menu on OSX

  1. #1
    Join Date
    Dec 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Changing the name of the application menu on OSX

    Hi,

    how do I change the name of the menu next to the apple logo? Qt automatically sets it to the name of the binary 'foobar', but I want 'FooBar'.

    I know I can create bundles with a info.plist file and specify it there, but I'm not using qmake (scons instead).

    There must be an OSX specific function call to set this name?

    -- wang

  2. #2
    Join Date
    Dec 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Changing the name of the application menu on OSX

    bump xxxxxxxxxxxxxxxxxx

  3. #3
    Join Date
    Oct 2008
    Posts
    37
    Thanked 2 Times in 2 Posts

    Default Re: Changing the name of the application menu on OSX

    My understanding of this (albeit maybe dated) is that you can't actually change this. I remember hearing someone complain that there's no access to this either through the Cocoa or the Carbon API. It defaults to the name of the application. It's been 2 or 3 years since I've touched Carbon...so there might be now.

    But I googled around and found this:
    http://lapcatsoftware.com/blog/2007/05/

    "...... In MainMenu.nib of a default Xcode Cocoa application project, the application menu is the submenu for the item NewApplication. Actually, it doesn’t matter what the title is of this menu item, because regardless of how you set it in Interface Builder, Cocoa replaces the title at runtime with an empty string, and the name of the application boldly goes on the menu bar. The title of the application menu itself is "Apple", which is highly misleading, considering that its left-side neighbor on the menu bar has an Apple icon at the top. Just to be clear, the "Apple" menu is not the menu with an Apple. Got it?"

    Hope it helps.

  4. #4
    Join Date
    Aug 2006
    Posts
    77
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    14
    Thanked 3 Times in 3 Posts

    Default Re: Changing the name of the application menu on OSX

    Hi!

    Why don't you leave the "foobar" binary alone and create instead a symbolic link to this binary.

    "ln -s foobar FooBar"

    then run FooBar and the name should be properly displayed.

  5. #5
    Join Date
    Oct 2008
    Posts
    37
    Thanked 2 Times in 2 Posts

    Default Re: Changing the name of the application menu on OSX

    ..also you could edit project file so the resulting binary to container FooBar....

Similar Threads

  1. Docked Widget Menu
    By Chuk in forum Qt Programming
    Replies: 6
    Last Post: 3rd July 2013, 15:12
  2. QSkinWindows Classes
    By kernel_panic in forum Qt-based Software
    Replies: 45
    Last Post: 20th April 2010, 13:35
  3. Replies: 7
    Last Post: 4th October 2008, 13:14
  4. Changing application palette [solved]
    By maverick_pol in forum Qt Programming
    Replies: 1
    Last Post: 2nd April 2008, 17:02
  5. dll + application
    By fpujol in forum Qt Programming
    Replies: 11
    Last Post: 15th April 2007, 19:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.