Checkbox starts click and doesn't do what it should
Checkbox starts click and doesn't do what it should
- Subject: Checkbox starts click and doesn't do what it should
- From: deekpyro <email@hidden>
- Date: Thu, 21 Mar 2002 19:14:32 -0600
I have the following code in my project:
- (IBAction)checkBox1Clicked:(id)sender
{
...
[Gamma setEnabled:[sender state]];
...
}
As you can see from above I want it so when the checkbox is clicked then
slidder (Gamma) becomes enabled, BUT the default of this checkbox is click,
so the first time you click it (in this case it unclicks) nothing happens to
the Gamma slidder. If you would click it again the Gamma slider now follows
what I want it to do, become enabled and not enabled when the checkbox is
click. BUT it does it one click late. Why does it not work the first time
you click the checkbox?
Derek
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.