If I have a NSMutableArray:
NSMutableArray *principalTable;
and I have a other NSMutableArray:
NSMutableArray *secondTable;
and I do this:
[secondTable addObject:@"string"];
[principalTable addObject: secondTable];
[secondTable removeAllObjects];
The principalTable has 1 object, but this object has nothing inside. So my question is:
- When I add a object in a array, the array point on the object, or copy the object in the array?
- And is it the same thing when I add in a nsmutabledictionnary?