Bindings and nested checkboxes and enabled
Bindings and nested checkboxes and enabled
- Subject: Bindings and nested checkboxes and enabled
- From: Adam Gerson <email@hidden>
- Date: Sun, 15 Mar 2009 23:41:58 -0400
I have two checkboxes in a preferences window which are bound to user
defaults. The second checkbox should only be enabled if the first
checkbox its true. I have this working great with bindings. The second
checkboxe's enabled binding is bound to the value of the first one.
However, if the first checkbox becomes false, the second checkbox goes
unenabled, but remains checked. Is there any way with bindings to get
the second checkbox to reset to false when the first checkbox is
unchecked. I can't bind them both to the same value because there are
cases when the first checkbox would be true and the second one would
be false.
If you need a visual:
http://screencast.com/t/BbQOybP2KjN
Thanks,
Adam
_______________________________________________
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