Re: Problem Binding to UserDefaults

2010-12-06 Thread jonat...@mugginsoft.com
On 5 Dec 2010, at 12:36, Peter Zegelin wrote: > Found the problem! > > I hadn't checked the 'Handles Content as Compound Value' checkbox in the > Array Controller Bindings. Switching this on and all now works. > > The binding option being enabled here is NSHandlesContentAsCompoundValueBindi

Re: Problem Binding to UserDefaults

2010-12-05 Thread Peter Zegelin
Found the problem! I hadn't checked the 'Handles Content as Compound Value' checkbox in the Array Controller Bindings. Switching this on and all now works. On 05/12/2010, at 12:01 PM, Peter Zegelin wrote: > That doesn't appear to be the problem as adding and deleting items are saved. > It's o

Re: Problem Binding to UserDefaults

2010-12-04 Thread Peter Zegelin
That doesn't appear to be the problem as adding and deleting items are saved. It's only when I change a value that the result isn't saved back to the defaults. I have created a really simple project here: http://fracturedsoftware.com/downloads/developer/UserDefaultsBindingTest.zip If someone c

Re: Problem Binding to UserDefaults

2010-12-02 Thread Jerry Krinock
On 2010 Dec 01, at 21:10, Peter Zegelin wrote: > However, if I change the displayType of the selected row via the control, > then the results are *not* saved. The new value is correct while the app is > running but never saved. Make sure that, when testing this, you are quitting your app norma

Problem Binding to UserDefaults

2010-12-01 Thread Peter Zegelin
I am having trouble getting a change in a value in my preferences to be automatically saved, using bindings. The defaults contain an array (called Workspaces) with two values: displayName and displayType ( which is a number ). I have an arrayController that is bound to the Workspaces value in th