I am making a number of custom objects. I want to add each object to an array, but after the code below is run the array is still empty.
for (int i = 0; i<= numberOfObjectsWanted; i++) {
CustomClass *object = [[CustomClass alloc]init];
[objectsArray addObject:object];
}
objectsArray is an NSMutableArray