Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programatically Change the Application Title Menu Item



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.