[comp.sys.next] setState: method in Button

mrc@Tomobiki-Cho.CAC.Washington.EDU (Mark Crispin) (03/21/89)

Help!!!

I have a few switches whose state can be set by clicking the switch by the
mouse *or* can also be set by program control (using the setState: method).

All works well, except for those switches whose states are initialized to
the ON (checked) state by the program.  The check mark fails to appear.
The switch's state is on, because buttoning it with the mouse does the
"state off" action.  After it gets moused, then it works OK.

I theorize that the check mark isn't loaded with the switch until the first
time it is moused.

How can I fix this?  I cannot predict which switches will be on and which
will be off.

Mark Crispin / P.O. Box 2652 / Seattle, WA 98111-2652 / (206) 842-2385
mrc@Tomobiki-Cho.CAC.Washington.EDU / MRC@WSMR-SIMTEL20.Army.Mil
250cc Rebel pilot -- I just wind it up and it goes!
kisha no kisha ga kisha de kisha-shita...tabesaserarenakerebanaranakattarashii