int -> NSInteger

Not exactly groundbreaking, but I changed all int types to NSInteger so that when it is running on 64-bit devices, Xcode doesn't go crazy with warnings.