• 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: Menu About to show notification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Menu About to show notification (From: davidjclark <email@hidden>)

  • Prev by Date: Re: NSKeyValueCoding tips
  • Next by Date: Universally available widgets
  • Previous by thread: Menu About to show notification
  • Next by thread: Re: Menu About to show notification
  • Index(es):
    • Date
    • Thread