Selecting submenu root
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.