I have five textured NSButtons that are set to operate in "On Off" mode. All of them are value-bound to different bools in my application. Somehow the first button starts in the "On"-state and the others in the off state, no matter which button I bind to which bool. If I remove the bindings, the buttons start in the "On"-state.

Setting the bools in awakeFromNib does not affect the state of the buttons. Clicking the buttons however causes my bools to have the correct values.

What am I doing wrong? How can I at least set the initial state of my buttons? (They are all "On" in IB)

I just noticed that removing the binding from the first button and adding that SAME binding again causes it to behave like the other buttons. I can restore the "On"-behavior by undoing that change. There has to be a bug involved, however the only thing I want is that all buttons start in the "On"-state without needing an outlet in my controller.

I am thankful for suggestions,
Yann
_______________________________________________

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