How can I save an Objective-C object that's not a property list object or is there a better way for this than a property list?
问题 I'm writing a Cookbook application, and I've not been able to find anything on how to save the data of a class I've created (the Recipe class). The only way I've seen would be to possibly save the contents of this class as a whole without individually saving every element of the class for each object by making this method for my Recipe class: -(void) writeToFile:(NSString *)file atomically:(BOOL)atomic{ } But I have absolutely no idea how I'd go about implementing this to save this object to