Prefer Objective-C objects vs arrays of ints so you can use fast enumeration and drop the sizeof math and indexing. There is a whole lot of C code sprinkled throughout that's making things harder than it has to be ;)