• 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: Submenus - What am I not understanding?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Submenus - What am I not understanding?
      • From: Alastair Houghton <email@hidden>
References: 
 >Submenus - What am I not understanding? (From: Christopher Drum <email@hidden>)

  • Prev by Date: Re: NSBox sizeToFit problem
  • Next by Date: Re: Submenus - What am I not understanding?
  • Previous by thread: Submenus - What am I not understanding?
  • Next by thread: Re: Submenus - What am I not understanding?
  • Index(es):
    • Date
    • Thread