This is the same code I have been testing but since i updated my itouch to 3.1.2 I am getting this error.
It throws the execption on this bit of code:
It throws it when I call [self setHighScoresArray:[NSKeyedUnarchiver unarchiveObjectWithFile:archivePath]];
I have defined highScoresArray as follows:
.h file
NSMutableArray* highScoresArray;
@property (retain) NSMutableArray* highScoresArray;
.m file
@synthesize highScoresArray;
Any ideas????
It throws the execption on this bit of code:
Code:
NSString *archivePath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"HighScore.archive"];
[self setHighScoresArray:[NSKeyedUnarchiver unarchiveObjectWithFile:archivePath]];
if (highScoresArray == nil) {
[self setHighScoresArray:[[NSMutableArray alloc] init]];
}
It throws it when I call [self setHighScoresArray:[NSKeyedUnarchiver unarchiveObjectWithFile:archivePath]];
I have defined highScoresArray as follows:
.h file
NSMutableArray* highScoresArray;
@property (retain) NSMutableArray* highScoresArray;
.m file
@synthesize highScoresArray;
Any ideas????