NSUInteger not recognized

  • I'm trying to use the getPixel method of NSBitmapImageRep

      - (void)getPixel:(NSUInteger[])pixelData atX:(NSInteger)x y:
    (NSInteger)y

    As you can see, it calls for an NSUInteger[].  If I declare one, like
    so:

    NSUInteger *data;

    the compiler gives an error:

    "error: 'NSUInteger' undeclared..."

    Any Ideas?

    - Jason
  • Le 8 nov. 07 à 19:43, Jason Horn a écrit :

    > I'm trying to use the getPixel method of NSBitmapImageRep
    >
    > - (void)getPixel:(NSUInteger[])pixelData atX:(NSInteger)x y:
    > (NSInteger)y
    >
    > As you can see, it calls for an NSUInteger[].  If I declare one,
    > like so:
    >
    > NSUInteger *data;
    >
    > the compiler gives an error:
    >
    > "error: 'NSUInteger' undeclared..."
    >
    >
    > Any Ideas?
    >
    > - Jason

    Which SDK are you using? NSUInteger is not declared in SDK previous
    to Mac OS X.5.
    Check you project settings.
  • Jason Horn wrote:

    > I'm trying to use the getPixel method of NSBitmapImageRep
    >
    > - (void)getPixel:(NSUInteger[])pixelData atX:(NSInteger)x y:
    > (NSInteger)y
    >
    > As you can see, it calls for an NSUInteger[].  If I declare one, like
    > so:
    >
    > NSUInteger *data;
    >
    > the compiler gives an error:
    >
    > "error: 'NSUInteger' undeclared..."
    >
    >
    > Any Ideas?

    Best guess? You're using a pre-10.5 SDK.
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today