Re: Archiving NSError

2008-11-16 Thread Mike Abdullah
Have a look at the documentation for -writeToFile:atomically: In particular this quote: "This method recursively validates that all the contained objects are property list objects (instances of NSData, NSDate, NSNumber, NSString, NSArray, or NSDictionary) before writing out the file, and

Re: Archiving NSError

2008-11-16 Thread Jean-Daniel Dupas
Le 16 nov. 08 à 15:41, Vera Tkachenko a écrit : Hello to mac developers :) If I don't misunderstand things NSError objects can be archived because NSError implements NSCoding protocol. I try to archive it as follows: NSMutableDictionary * dict = [[NSMutableDictionary alloc]

Archiving NSError

2008-11-16 Thread Vera Tkachenko
Hello to mac developers :) If I don't misunderstand things NSError objects can be archived because NSError implements NSCoding protocol. I try to archive it as follows: NSMutableDictionary * dict = [[NSMutableDictionary alloc] init]; NSError * error = [[NSError alloc] initWith