advertisement

Article:
  Creating a Color Meter Using Cocoa
Subject:   re: init code
Date:   2001-06-19 14:11:51
From:   davidmasters
Response to: init code

I thought of putting initialisation code in init first as well, but then thought it should be in awakeFromNib instead:


- (void)awakeFromNib
{
alphaValue = 1.0;
....
[alphaField setFloatValue:alphaValue];
[alphaSlider setFloatValue:alphaValue];
...
[self updateColor];
}


Don't know if it's right, but it seems to work!


David


1 to 1 of 1
  1. re: init code
    2001-06-20 06:25:16  rainwadj [View]

1 to 1 of 1