• 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
Altering an existing menu item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Altering an existing menu item


  • Subject: Altering an existing menu item
  • From: John Lombardo <email@hidden>
  • Date: Mon, 18 Aug 2003 17:55:09 +0800

Is there some magic trick I need to do to make changes to a menu item take
effect? I can reference a particular menu item using:

[[[[NSApp mainMenu] itemWithTitle:@"Modules"] submenu]
itemWithTitle:@"Administration"]

And I know this works because I can print it's title using NSLog(). However,
when I use setImage or setTitle, nothing happens. I thought maybe there was
some sort of refresh, reload, or justBloodyDoIt method for NSMenuItem, but I
couldn't find anything.

This isn't a critical issue, but it would be nice to know what is going on.

Cheers,
john
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Altering an existing menu item
      • From: Neil Earnshaw <email@hidden>
  • Prev by Date: Re: Executing AppleScript from Cocoa (with return values)
  • Next by Date: Re: Executing AppleScript from Cocoa (with return values)
  • Previous by thread: Drawing to a hidden view
  • Next by thread: Re: Altering an existing menu item
  • Index(es):
    • Date
    • Thread