> float r,g,b,a; > [pixelColor getRed:&r green:&g blue:&b alpha:&a];
-getRed:... accepts CGFloats as arguments, not floats. Depending on your architecture, you're supplying a pointer to an incorrectly-sized variable, and the bug you're seeing is the result of this error. If you NSLog(@"%@", pixelColor); you'll see that the color is in fact correct. _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
