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

How to get selection of submenu


  • Subject: How to get selection of submenu
  • From: "Chen, Jeff" <email@hidden>
  • Date: Thu, 23 Aug 2007 10:31:22 +0800

Hi All,

I met with a issue when I handle sub menu of NSPopupButton:

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.

But it only takes effect to the mainmenu but not to the submenu.

Is there anyone who knows how to get selection from sub menu?

Best Regards
Jeff Chen
_______________________________________________

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

  • Follow-Ups:
    • Re: How to get selection of submenu
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Storing Data
  • Next by Date: RS: declaration bug
  • Previous by thread: Re: Storing Data
  • Next by thread: Re: How to get selection of submenu
  • Index(es):
    • Date
    • Thread