Hi,
I am pretty inexperienced as well so I may be missing the crux of the problem but can you not just use the "addObjectsFromArray:" method to add the generated values to the plist data Array:
Code:
[plistDataArray addObjectsFromArray:generatedArray];
or add both sets to a new array:
Code:
NSMutableArray *newArray = [NSMutableArray arrayWithArray:plistDataArray];
[newArray addObjectsFromArray:generatedArray];
Or a third option which I think might be what you are looking for, to interleave the values from each array:
Code:
NSMutableArray *newArray;
NSInteger counter = 0;
GeneratedObject *tempObject;
for(PlistObject *currentPlistObject in plistDataArray) {
[newArray addObject:currentPlistObject];
tempObject = [generatedArray objectAtIndex:counter];
[newArray addObject:tempObject];
counter++;
}
I have not tested any of this but hopefully you get the general idea and it is what you are looking for.
M.J.