• 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: A problem with PopupButtonCell --- submenu selection not available
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A problem with PopupButtonCell --- submenu selection not available


  • Subject: Re: A problem with PopupButtonCell --- submenu selection not available
  • From: Ron Fleckner <email@hidden>
  • Date: Mon, 5 Jul 2010 21:41:11 +1000

On 05/07/2010, at 9:32 PM, Motti Shneor wrote:

> This works nicely ---- until the menu has submenus.  If a user selects an item that belongs to a submenu --- then
>
> resultIndex = [popUpButtonCell indexOfSelectedItem]; returns -1 (unknown)
> result = [popUpButtonCell selectedItem]; returns nil!
>
> How can I resolve this thing? I MUST have popup menus with sub-menus! Is there a hidden member or method that will tell me what was the last selected menu item?
>
> Any hint will be appreciated.
>
> Motti Shneor

Hi,
I think that submenus in popup menus are not supported, though as you can see from this exchange, it isn't impossible.  Possibly just very difficult:
<http://www.cocoabuilder.com/archive/cocoa/150264-nspopupbutton-with-submenus.html?q=popupbutton+submenu#150368>

Ron

_______________________________________________

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: 
 >A problem with PopupButtonCell --- submenu selection not available (From: Motti Shneor <email@hidden>)

  • Prev by Date: A problem with PopupButtonCell --- submenu selection not available
  • Next by Date: Run application before Login starts?
  • Previous by thread: A problem with PopupButtonCell --- submenu selection not available
  • Next by thread: Re: A problem with PopupButtonCell --- submenu selection not available
  • Index(es):
    • Date
    • Thread