• 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
Selecting submenu root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Selecting submenu root


  • Subject: Selecting submenu root
  • From: Benoit Widemann <email@hidden>
  • Date: Sat, 29 Jun 2002 21:16:32 +0200

In a hierarchical menu, I need to handle the selection of the submenu's parent, like Internet Explorer's "Organize Favorites" item. This item is the parent of a submenu, AND you can select it too.

In Carbon's Menu.h, there is a menu item attribute that does exactly that: kMenuItemAttrSubmenuParentChoosable.

I'm wondering if NSMenu objects are linked internally to a Carbon MenuRef structure, in which case it would be possible to use a couple of Carbon calls and fix the attribute.

But the problem is, how to get a MenuRef from a NSMenu?

Benoit Widemann
_______________________________________________
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: Selecting submenu root
      • From: Nicholas Riley <email@hidden>
  • Prev by Date: Re: making NSTableView firstResponder programmatically
  • Next by Date: Re-sizing columns in NSBrowser
  • Previous by thread: Selecting submenu root
  • Next by thread: Re: Selecting submenu root
  • Index(es):
    • Date
    • Thread