• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Programatically Change the Application Title Menu Item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programatically Change the Application Title Menu Item


  • Subject: Re: Programatically Change the Application Title Menu Item
  • From: patrick machielse <email@hidden>
  • Date: Thu, 15 Sep 2005 10:49:13 +0200

Op 15-sep-2005, om 2:36 heeft Geoff Norton het volgende geschreven:

The subject is pretty self-explanatory. I'm looking for (to no avail) a way to programatically change the application title as shown in the menu bar. Anyone come across this before or have a solution?

This came up in comp.sys.mac.programmer.help a while ago:

<http://groups.google.com/group/comp.sys.mac.programmer.help/ browse_frm/thread/d4056335b33d9f36/756f8b5d9e43dfea?tvc=1&q=How+to +change+NSApplication+name+on+the+fly&hl=nl#756f8b5d9e43dfea>

(get's a bit ugly near the end...)

It seems the only thing you can do is to change the Info.plist in main (), before you call NSApplicationMain(). It is dirty, but it works.

The application name in Cocoa is not changeable once it has been set (at least I haven't found a way). You can't just change the title of the menu item. If you want this functionality, maybe [NSApplication setDisplayedName:] or something similar, file an enhancement request.

patrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Programatically Change the Application Title Menu Item
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: Core data model - binding question
  • Next by Date: Re: Simple question
  • Previous by thread: Re: Programatically Change the Application Title Menu Item
  • Next by thread: Re: Programatically Change the Application Title Menu Item
  • Index(es):
    • Date
    • Thread