advertisement

Article:
  Creating a Color Meter Using Cocoa
Subject:   Debugging
Date:   2001-06-16 07:58:40
From:   retro
Thanks for your debugging. The change you made to:
[blueField setFloatValue:blueValue];
is correct, and as I was typing the code I was wondering about this.


However, the article was sufficiently vague about which connections should be made, which I liked, since it forced me to think a bit. I think I made all the right connections necessary, my project is working properly (thanks Mike, you rock, I looooovve your column!) If you don't want a spoiler, don't continue reading. :)


The connections to make are:


Alpha Slider to Controller - use setAlpha:
Alpha Text Field to Controller - use setAlpha:
etc for the other sliders/text fields


Controller to Alpha TextField - use alphaField
Controller to Alpha Slider - use alphaSlider
etc for the other sliders/text fields


Controller to Color Well - use colorWell


thebod, the only thing that I can think of is you might have mistyped the first line of updateColor. Its working for me :)