Storing objects in an array in objective c
===

 I'm trying to store 25 objects in an array

    for (int iy=0; iy<5; iy++) {
            for (int ix=0; ix<5; ix++) {
                
                TerrainHex *myObject = [[TerrainHex alloc] initWithName:(@"grassHex instance 10000") width:mGameWidth height:mGameHeight indexX:ix indexY:iy];
                myObject.myImage.y += 100;
                
                [TerrainHexArray addObject:myObject];
                
                [self addChild:(id)myObject.myImage];
            }
        }
        NSLog(@"Terrain array: %u", [TerrainHexArray count]);

The log is coming back as zero though.