Re: A problem with PopupButtonCell --- submenu selection not available
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