Hello. I'm very much a Cocoa n00b so I thought maybe you guys could help me with this.
In an app I'm working on there is an NSTableView that contains Gizmos. I have successfully setup an NSArrayController with bindings to manage the Gizmos contained within this table. I have buttons that properly add and remove new Gizmos. I also have an NSUserDefaultsController setup that successfully manages some simple global settings.
Here's what I can't figure out: How can I get my NSMutableArray of Gizmos that is managed by the NSArrayController to also be automagically saved in the prefs by NSUserDefaultsController? I would like to be able to, for instance, add a new Gizmo with the button linked to NSArrayController's add: action, change the Gizmo's name in the table, quit the app, and then find that same Gizmo in the table again the next time I launch the app.