change int to NSInteger

Needed with xCode 4.6