For the sake of simplicity, let's assume that we have the following simple class interface:
@interface Person : NSObject <NSCoding> {
NSString *firstname;
NSString *lastname;
}
@property (copy) NSString *firstname;
@property (copy) NSString *lastname;
@end
Is it possible to serialize this object into a plist (assuming that the NSCoding protocol is implemented correctly)?
Update December, 31st 2010 14:40
I have some follow up questions on this. Is it possible to have NSKeyedArchiver
export the plist as XML? Furthermore, is it possible to dump the XML into variable instead of a file?