• 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: Dynamic menu building
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic menu building


  • Subject: Re: Dynamic menu building
  • From: j o a r <email@hidden>
  • Date: Fri, 15 Aug 2003 10:19:55 +0200

On den 15 augusti 2003, at 09:42:26AM, April Gendill wrote:

Dynamic menu building is as far as I can tell very complex.

No, it's very simple... ;)
Just find the menu (if it is the application menu you can get it from the shared NSApplication instance) and then add / remove items from it using the "addItem:" / "removeItem:" methods. Nothing complex there.

The name of the menu is most often not interesting / used - set it to @"". You can change it's "name" using the "title" attribute of the menu item instance holding the menu - this can be set and re-set as many times as you want.

j o a r
_______________________________________________
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: Dynamic menu building
      • From: April Gendill <email@hidden>
    • Drawer still interactive after raising sheet
      • From: Arthur Clemens <email@hidden>
References: 
 >Dynamic menu building (From: April Gendill <email@hidden>)

  • Prev by Date: Dynamic menu building
  • Next by Date: Recent Items
  • Previous by thread: Dynamic menu building
  • Next by thread: Drawer still interactive after raising sheet
  • Index(es):
    • Date
    • Thread