1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

ProcessInfo question.

Discussion in 'Mac Programming' started by mdeh, Feb 18, 2009.

  1. macrumors 6502

    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]);
  2. macrumors 68030


    NSUInteger is not an object, it's an unsigned int on 32 bit, an unsigned long on 64 bit.
  3. macrumors 6502

    oops..just saw it's s typedef.


Share This Page