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

Re: Custom menu behavior


  • Subject: Re: Custom menu behavior
  • From: Daniel Jalkut <email@hidden>
  • Date: Thu, 03 Nov 2005 10:15:49 -0500

Hi Tristan - I'm pretty sure you'll have to use Carbon to achieve this. You can create a Carbon menu and display it with PopUpMenuSelect. Before you do so, you want to install a Carbon event handler (InstallEventHandler) for the {kEventClassMenu, kEventMenuTargetItem} event.

Kind of complicated if you're not familiar with Carbon, but it will get the job done! As far as I know this functionality is still not available from Cocoa's NSMenu.

Daniel

On Nov 3, 2005, at 4:57 AM, Tristan Leblanc wrote:


Hi,

Is there any way to add custom behaviors to menus.

I would like to use a popup button, but I need to know wich item is under the mouse while tracking the menu...

Thanks,

Tristan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Custom menu behavior (From: Tristan Leblanc <email@hidden>)

  • Prev by Date: Re: Image loading bug out of nowhere...
  • Next by Date: Re: Reviews of "Advanced Mac OS X Programming"
  • Previous by thread: Custom menu behavior
  • Next by thread: Tracking rects
  • Index(es):
    • Date
    • Thread