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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to