Re: Programatically Change the Application Title Menu Item
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