Skip to content

Monthly Archives: April 2009

Creating and using an Array of objects

First we need an array to hold the objects (in this case bullets) [code lang="c_mac"] NSMutableArray *myBullets = [[NSMutableArray alloc] init]; [/code] Create and then add the objects [code lang="c_mac"] for (int i=0; i