On 05/06/2009, at 6:46 PM, Nikhil Khandelwal wrote:
I want to change the name of application in the main menu
programmatically.
Using the following line of code I am able to get reference to other
menu items like File, Insert, draw etc but not getting reference to
application menu.
[[NSApp mainMenu] itemWithTitle:@"File"];
By name of application I means the first menu item shown in every
application.
[[NSApp mainMenu] itemAtIndex:0]
In general it's best to avoid using -itemWithTitle: as localization
may change the title.
--
Rob Keniger
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com