Changed some ints to NSIntegers

...to get rid of Xcode warnings.