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 (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