PDA

View Full Version : ProcessInfo question.




mdeh
Feb 18, 2009, 06:53 PM
This bit of code is throwing an error : invalid receiver type 'NSUInteger'. Have tried L, ll, q but to no avail. Something is missing in my understanding? :)

Given proc = initialized processInfo object.

NSLog(@"Number of Active Processors: %q", [[proc activeProcessorCount] unsignedIntValue]);

thanks.



Catfish_Man
Feb 18, 2009, 07:04 PM
NSUInteger is not an object, it's an unsigned int on 32 bit, an unsigned long on 64 bit.

mdeh
Feb 18, 2009, 07:14 PM
NSUInteger is not an object, it's an unsigned int on 32 bit, an unsigned long on 64 bit.

oops..just saw it's s typedef.

thanks