• 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
NSPopupUpButton not showing checked menu items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopupUpButton not showing checked menu items


  • Subject: NSPopupUpButton not showing checked menu items
  • From: Steve Christensen <email@hidden>
  • Date: Sat, 22 Nov 2008 18:20:35 -0800

In IB I created a NSPopUpButton configured as pulldown with a static menu. I bound its selectedTag binding to a method on my window controller. (I also tried binding selectedIndex with the same results.) When I run my code and select various of the items in the button's menu, none of the items are shown as checked. Or if one of the menu items was left "selected" in IB from when items were added to the menu, that item is permanently checked.

I added NSLog calls in the controller's getter and setter methods bound to the popup and they're correctly tracking the changes to the selected item. When I dumped out each NSMenuItems's -state, all returned NSOffState. This is very strange since I've done this sort of thing before with NSPopUpButtons configured as popup (vs pulldown) with no problems. Any ideas what I might be doing wrong? BTW, this is on 10.4.11.

steve

_______________________________________________

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: NSPopupUpButton not showing checked menu items
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: Core Animation: How to swicth off all implicit animations?
  • Next by Date: Facile Core Data Question
  • Previous by thread: Re: How do I get a CGContextRef?
  • Next by thread: Re: NSPopupUpButton not showing checked menu items
  • Index(es):
    • Date
    • Thread