I call the method like so NSString *testString = [array objectAtRow: 5 column: 1]; and it always returns nil, so i checked the CRL2DArray.m and changed the method to this:
- (id) objectAtRow:(int)x column:(int)y
{
if (x < outerArray.count) {
NSMutableArray *array = [outerArray objectAtIndex:x];
if (y < capacity) {
id data = (id)[array objectAtIndex:y];
// No idea why but here if i comment out the code it seems to work perfectly
//if ([data isKindOfClass:[NSString class]])
//return nil;
//else
return data;
}
}
[NSException raise:@"Index out of Bounds" format:@"The Indices Provided were Incorrect %i, %i", x,y];
return nil;
}
Which fixed it!
I call the method like so
NSString *testString = [array objectAtRow: 5 column: 1];and it always returns nil, so i checked the CRL2DArray.m and changed the method to this:Which fixed it!