Hi All
I am attempting to replace an object in an NSMutableArray. Elsewhere in my class I am doing it successfully. Below is an example of the code failure.
NSNumber* newObject = [NSNumber numberWithDoulble:myCalculation];
NSLog(@"Old object at 12:%@",[myMisbehavingArray objectAtIndex:12];
[myMisbehavingArray replaceObjectAtIndex:12 withObject:newObject];
I threw in the NSLog statement to make sure myMisbehavingArray was pointing at something and it is, but when I run the program I get a EXC_BAD_ACCESS at the point of the replaceObjectAtIndex method.
Any Ideas?