• 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: How to get selection of submenu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to get selection of submenu (From: "Chen, Jeff" <email@hidden>)

  • Prev by Date: Re: memory mgmt for NSMutableArray as ivar
  • Next by Date: Re: memory mgmt for NSMutableArray as ivar
  • Previous by thread: How to get selection of submenu
  • Next by thread: RS: declaration bug
  • Index(es):
    • Date
    • Thread