Created
May 3, 2011 06:41
-
-
Save echristopherson/952908 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #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