In iOS, NSUInteger has an unsigned int , on OSX it is an unsigned long . How can I make a print expression like
NSLog(@"Array has %d elements.",[array count]);
compile on both platforms without warning? I can, of course, use the #ifdef #else #endif construct, but this will add 4 lines of code. I could also pass the return value to an unsigned int. Is there a shorter solution?
hanno
source share