Skip to content

Instantly share code, notes, and snippets.

@echristopherson
Created May 3, 2011 06:41
Show Gist options
  • Save echristopherson/952908 to your computer and use it in GitHub Desktop.
Save echristopherson/952908 to your computer and use it in GitHub Desktop.
// #1. Original code (causes unrecognized selector exception):
[self setColor:DecodePixel24(coder)];
// #2. Dummy code that does work:
Pixel24 __tempPixel = {255, 255, 255};
[self setColor:__tempPixel];
// Code that should work, judging from the previous, but actually raises the
// same exception as in #1:
Pixel24 __tempPixel = {255, 255, 255};
(void)DecodePixel24(coder);
[self setColor:__tempPixel];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment