Re: Storing a table view in user defaults

2009-04-28 Thread Ryan Briones
God, thank you! You have saved my sanity. On Tue, Apr 28, 2009 at 11:35 PM, Steven Riggs wrote: > You were right there. All you have to do to get it to work is check > 'Handles content as compound value' on the array controller content array > binding. > All the best, >Steven Riggs > > > >

Re: Storing a table view in user defaults

2009-04-28 Thread Ryan Briones
Hey, thanks! I actually ran across your code last night when I was first doing this. I ran your code and it worked fine. I created a test project to "copy" your code, and mine failed. I tried looking at every checkbox and every key path, nothing worked. I've uploaded my the "test project" to github

Re: Storing a table view in user defaults

2009-04-28 Thread Ryan Briones
On Tue, Apr 28, 2009 at 2:31 PM, Jerry Krinock wrote: > > On 2009 Apr 28, at 08:04, Ryan Briones wrote: > > My problem is that I have a table view that's bound >> to an array controller backed by user defaults in IB. >> > > I don't know what "backed by" means. Sorry for not using the proper te

Re: Storing a table view in user defaults

2009-04-28 Thread Steven Riggs
You were right there. All you have to do to get it to work is check 'Handles content as compound value' on the array controller content array binding. All the best, Steven Riggs On Apr 28, 2009, at 10:02 PM, Ryan Briones wrote: Hey, thanks! I actually ran across your code last night wh

Re: Storing a table view in user defaults

2009-04-28 Thread Steven Riggs
Check out the sample code here that demonstrates storing a dictionary in defaults with no code. http://idisk.mac.com/steven.riggs-Public?view=web I hope it helps... Steven Riggs On Apr 28, 2009, at 11:04 AM, Ryan Briones wrote: I'm a relative newb when it comes to cocoa programming, but I'v

Re: Storing a table view in user defaults

2009-04-28 Thread Jerry Krinock
On 2009 Apr 28, at 11:41, Ryan Briones wrote: Sorry for not using the proper terminology. I have a table view whose columns are bound to an array controller (Controller Key: arrangedObjects, Model Key Path: name, etc) and the array controller is bound You didn't say which binding. Shoul

Re: Storing a table view in user defaults

2009-04-28 Thread Jerry Krinock
On 2009 Apr 28, at 08:04, Ryan Briones wrote: My problem is that I have a table view that's bound to an array controller backed by user defaults in IB. I don't know what "backed by" means. The 'content' binding of your array controller should be bound to an NSUserDefaults object (labelled

Storing a table view in user defaults

2009-04-28 Thread Ryan Briones
I'm a relative newb when it comes to cocoa programming, but I've been trying to finish of a project and put it out there so I can get some feedback and continue to get better. My problem is that I have a table view that's bound to an array controller backed by user defaults in IB. Adding a single n