Re: Menu About to show notification
Re: Menu About to show notification
- Subject: Re: Menu About to show notification
- From: Carlos Weber <email@hidden>
- Date: Mon, 28 Jan 2002 22:40:36 -1000
On Monday, January 28, 2002, at 05:36 , davidjclark wrote:
Hello,
Is there any way in cocoa to be informed when a menu is going to be
shown.
Something like:
- ( void ) willShowMenu:(NSMenu *)theMenu offMenuItem:(NSMenuItem
*)theMenuItem
I would like to have the opportunity to dynamically generate the menus
contents.
I think the cleanest way to do this is to subclass NSMenuItem and
override its -submenu method. I am polishing up an example of this,
which I will post to my homepage.mac.com page within the next day or so.
I'll notify you (and the list) when it's done.