ProcessInfo question.

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

  1. macrumors 6502

    Joined:
    Jan 3, 2009
    #1
    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.
    Code:
    NSLog(@"Number of Active Processors: %q", [[proc activeProcessorCount] unsignedIntValue]);
    thanks.
     
  2. macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #2
    NSUInteger is not an object, it's an unsigned int on 32 bit, an unsigned long on 64 bit.
     
  3. thread starter macrumors 6502

    Joined:
    Jan 3, 2009
    #3
    oops..just saw it's s typedef.

    thanks
     

Share This Page