NSPopupUpButton not showing checked menu items
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