• 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: Changing Menu item under application menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Changing Menu item under application menu


  • Subject: RE: Changing Menu item under application menu
  • From: Nikhil Khandelwal <email@hidden>
  • Date: Fri, 5 Jun 2009 15:14:13 +0530
  • Acceptlanguage: en-US, en-IN
  • Thread-topic: Changing Menu item under application menu

Thanks Rob.
Its working

--Nikhil

-----Original Message-----
From: cocoa-dev-bounces+nikhil_khandelwal=email@hidden [mailto:cocoa-dev-bounces+nikhil_khandelwal=email@hidden] On Behalf Of Rob Keniger
Sent: Friday, June 05, 2009 2:26 PM
To: Cocoa Dev
Subject: Re: Changing Menu item under application menu


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 (email@hidden)

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:

This email sent to email@hidden

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Changing Menu item under application menu (From: Nikhil Khandelwal <email@hidden>)
 >Re: Changing Menu item under application menu (From: Rob Keniger <email@hidden>)

  • Prev by Date: RE: finding bundle identifiers
  • Next by Date: Set icon for files created
  • Previous by thread: Re: Changing Menu item under application menu
  • Next by thread: finding bundle identifiers
  • Index(es):
    • Date
    • Thread