I have a NSPopupButton, bound Selected Tag to my array controller with the appropriate property. When a new object is created, the default value is appropriately selected out of the 2 menu items associated with the button (the value of the property is 0 or 1 as are the tags for the menu items so that should map directly). However, if the property is set to 0, when I select the second menu item (tag 1), the set message gets sent to my object correctly, but another set message is sent immediately changing it back to 0. This doesn't happen if the object is initialized with a 1 first: I can select the first menu item (tag 0) and only one set is sent.

Odd, and it's probably something stupid I did, but for the life of me I can't track down where that second set method message is coming from. I thought perhaps I was using the Selected Tag binding incorrectly, and since the values are 0 based, I switched the binding to Selected Index. Same thing.

Thoughts?

jay
_______________________________________________

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