Re: How to get selection of submenu
Re: How to get selection of submenu
- Subject: Re: How to get selection of submenu
- From: Seth Willits <email@hidden>
- Date: Wed, 22 Aug 2007 20:46:59 -0700
On Aug 22, 2007, at 7:31 PM, Chen, Jeff wrote:
I create a NSPopupButton, and I also drag a NSMenu into nib file,
on this menu there is submenu to 2nd item, then I attach that menu
to NSPopupButton.
But I can't get selection when I select items in submenu. I use -
indexOfSelectedItem for NSPopupButton to get selection.
NSPopupButton isn't designed to work with submenus because you're not
supposed to use submenus in popup menus (see the HIG). It's difficult
and clunky and doesn't make sense. I'd suggest that you find a
different interface so you can use the controls as they're intended
to be used.
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden