Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

playboy16

macrumors newbie
Original poster
Jun 23, 2009
13
0
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:

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????
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.