I have an NSMutableArray with a bunch of Points(it's a class defined by me) inside. And I want to serialize this NSMutableArray to save to my disk. If I implement in my class Point the NSCoding protocol is it possible to use NSKeyedArchiver directly in my NSMutableArray?
Just like this example:
NSMutableData *data = [NSMutableData new];
NSKeyedArchiver *archiver = [[NSKeyedArchiver alloc] initForWritingWithMutableData:data];
[archiver encodeObject:myArray forKey:@"array"];
[data writeToFile:filename attomically:YES];
[archiver release];
[data release];