What\'s the easiest way to create an array of structs in Cocoa?
Or dynamically allocating:
struct foo { int bar; }; int main (int argc, const char * argv[]) { struct foo *foobar = malloc(sizeof(struct foo) * 3); foobar[0].bar = 7; // or foobar->bar = 7; free(foobar); }