Re: Dynamic menu building
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.