Replaced int's with NSInteger's

Stop warnings when building for 64bit.
May be unnecessary changes as well, however made it consistant.