I'd replace the int with NSUInteger or NSInteger (depending on signedness). That'll handle any 64-bit stuff for you. Not that it necessarily matters in this case, but it's just a good habit to get into.