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 (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 [EMAIL PROTECTED]

Reply via email to