PDA

View Full Version : NSArrayController




varsis
Sep 9, 2008, 02:20 AM
Okay, I have an NSArrayController setup, when you click on an item within the left column of it, I want it to load the options for that item.

Unfortunately I only know a way to add, but not to load my own variables...

Any ideas?

Chris



Soulstorm
Sep 9, 2008, 04:49 AM
Okay, I have an NSArrayController setup, when you click on an item within the left column of it, I want it to load the options for that item.

Unfortunately I only know a way to add, but not to load my own variables...

Any ideas?

Chris

You need to be more specific. I suppose that you want to load your variables from the disk (saving and loading)?

There are many ways to do that. My approach would be to tackle with normal saving-loading routines, as they exist in Cocoa may years now, and avoid messing with the standard way Cocoa bindings are saving their properties...