Bindings and nested checkboxes and enabled

2009-03-15 Thread Adam Gerson
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

Re: Bindings and nested checkboxes and enabled

2009-03-15 Thread Andrew Merenbach
On Mar 15, 2009, at 8:41 PM, Adam Gerson wrote: 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

Re: Bindings and nested checkboxes and enabled

2009-03-15 Thread Kyle Sluder
The logical answer is for some object in your application (probably your application delegate) to observe the first property using KVO and update the second property accordingly. After all, don't you want to update the second default anyway when the first changes? You also should be binding your