Re: userDefaultsDidChange is causing a loop with dependent checkbox values

2010-06-13 Thread Reinhard Segeler
How do you bind them to your checkbox? Do other checkboxes change the NSUserdefaults also, when one setting changes, then this can cause the loop, depending hwo they influence each other! When binding values with defaults - or other settings - you don't need NSUserDefaultsDidChangeNotific

Re: userDefaultsDidChange is causing a loop with dependent checkbox values

2010-06-12 Thread Jerry Krinock
On 2010 Jun 12, at 11:25, Adam Gerson wrote: > the problem I am having is that [checkboxB setState:0] only changes the value > on the screen but does > not update the defaults saved value in the file Maybe the change is being deferred until later. Tried -[NSUserDefaults synchronize]? > I hav

userDefaultsDidChange is causing a loop with dependent checkbox values

2010-06-12 Thread Adam Gerson
I have set up some NSUserDefaults and used bindings to bind them to some checkboxes and radiobuttons in my nib. I want the act of checking some of the checkboxes to uncheck or check other checkboxes. I did this by registering for a NSUserDefaultsDidChangeNotification. Then inside userDefaultsDidCh