Re: Submenus - What am I not understanding?
Re: Submenus - What am I not understanding?
- Subject: Re: Submenus - What am I not understanding?
- From: Graham Cox <email@hidden>
- Date: Fri, 7 May 2010 22:26:55 +1000
On 07/05/2010, at 3:53 PM, Christopher Drum wrote:
> 1. I have an NSPopUpButton in Interface Builder. When run in my live code, it functions as expected. Pick an item and the menu properly reflects my choice. Add a submenu cell to the list, populate it in Interface Builder, then run. Now choices made in the submenu are not reflected in the menu. Rather I get an empty cell. This seems like it should be very simple, and I don't recall having such issues with submenus in the past.
I could be wrong but I don't think submenus are well supported in NSPopUpButtons. You can have them, but they do not end up setting the displayed title in the button itself. I confirm that behaviour in one of by current development pop-ups. It's probably workaroundable by grabbing the chosen item and setting the button's title in code, though I haven't tried it yet. I'm not 100% sure if doing that would even be appropriate.
--Graham
_______________________________________________
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