I'm not sure if I worded the subject correctly. I am looping through an array, within each loop I am trying to instantiate a class, but I want to dynamically create the name. Like so:

```
int i = 0;

for(NSString* thisdatarow in filedata) { 
    i++;
    NSString* thisad = [NSString stringWithFormat:@"ad%d", i];
    NSLog(@"%@", thisad);
    AdData* thisad = [AdData new];  
}

```

In the example above I want AdData\* thisad... to be named dynamically - "ad1", "ad2", "ad3"...and so on. I get a conflicting type error. 

This code also generated an error: 

```
int i = 0;
for(NSString* thisdatarow in filedata) { 
    i++;
    AdData* [NSString stringWithFormat:@"ad%d", i] = [AdData new];
}

```

Is there a way to do this?