I have an NSMutableArray with 5 objects
[0] StateGeographicComponent * 0x0a455ba0
[1] StateGeographicComponent * 0x11c374b0
[2] StateGeographicComponent * 0x08e5f720
[3] StateGeographicComponent * 0x11c15430
[4] StateGeographicComponent * 0x0a458f20
After executing the following line of code:
[self.gameComponents removeObjectAtIndex:0];
Instead of simply removing the object at index 0 and sliding everything up an index as I'd expect. The object at index [0] is set to nil AND the object at index [4] is removed.
[0] id 0x00000000
[1] StateGeographicComponent * 0x11c374b0
[2] StateGeographicComponent * 0x08e5f720
[3] StateGeographicComponent * 0x11c15430
Quite perplexing to me..
poin the console. The debug display is likely confused.poin the console. This is why.