I tried googling this but I am not really sure what I'm searching for...
In objective-c how would I create the same number of NSDictionary objects as is array.count? I would want to autorelease the dictionary objects too.
EDIT: this is basically what I came up with but I'm not sure about how to make this work with objective-c syntax...
int *loopInt = 0;
while (doesntContainAnother.count <= loopInt) {
NSMutableDictionary *[NSString stringWithFormat:@"loopDictionary%i", loopInt] = [[[NSMutableDictionary alloc] init] autorelease];
[NSString stringWithFormat:@"loopDictionary%i", loopInt] = [NSDictionary dictionaryWithObject:[array1 objectAtIndex:loopInt]
forKey:[array2 objectAtIndex:loopInt]];
loopInt = loopInt + 1;
}