Normall, a fixed 2-D arrays in XCode would be like this
NSMutableArray * myBig2dArray = [[NSMutableArray alloc] init];
// first internal array
NSMutableArray * internalElement = [[[NSMutableArray alloc] init] autorelease];
[internalElement addObject:@"First - First"];
[internalElement addObject:@"First - Second"];
[myBig2dArray addObject:internalElement];
// second internal array
internalElement = [[[NSMutableArray alloc] init] autorelease];
[internalElement addObject:@"Second - First"];
[internalElement addObject:@"Second - Second"];
[myBig2dArray addObject:internalElement];
But How do I create variable length 2D array? I don't the length of each indiviudal array and I don't know how many totoal internal arrays I needed. It's all based on the need
So how do I create that?
Oh one more thing, I need to be able to address individual internal arrays, internal1, internal2, ...etc like that. Because each one holds a set of elements that share certain commonalities. I don't want to pile everything inside the big array.