views:

36

answers:

2

Is there a tutorial for saving and restoring an array of custom objects?

A: 

Like NSUserDefaults???

Matt S.
I'm trying to save custom objects so it's a little more involved than just using NSUserDefaults.
awakeFromNib
+2  A: 

I'm presuming you mean saving to disk and retrieving at some later point.

This is known as archiving in objective-c and can be performed on any object that implements NSCoding, including NSArray.

This looks like a fairly good tutorial here.

Greg Sexton
That tutorial is for cocoa not cocoa-touch. It also uses deprecated methods.
awakeFromNib