i had this which seemed to work as far as archiving/unarchiving into the temporary directory:
Code:
NSString *archivePath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"User.archive"];
BOOL *result = [NSKeyedArchiver archiveRootObject:[self newUser]
toFile:archivePath];
but when i switched it to this:
Code:
NSString *archivePath = [NSDocumentDirectory
stringByAppendingPathComponent:@"User.archive"];
BOOL *result = [NSKeyedArchiver archiveRootObject:[self newUser]
toFile:archivePath];
i get Bad Access errors and app quits...
what do i need to do differently if i want to save into documents directory vs. temporary directory? thanks!