Creating a Color Meter Using Cocoa
Subject:   init code
Date:   2001-06-19 13:59:30
From:   rainwadj
I noticed that the Color Meter app didn't do anything to the color well until I touched the sliders. So, I thought I'd be creative and add an init method to the Controller class:

- init
if (self = [super init]) {
redValue = [redSlider floatValue];
[redField setFloatValue:redValue];
[self updateColor];
return self;

I also tried setting redValue (etc.) to a constant, then calling both redField and redSlider. Neither way seems to do anything.

Any ideas?

1 to 1 of 1
  1. re: init code
    2001-06-19 14:11:51  davidmasters [View]

    • re: init code
      2001-06-20 06:25:16  rainwadj [View]

1 to 1 of 1