Re: NSButton (Switch)
Re: NSButton (Switch)
- Subject: Re: NSButton (Switch)
- From: Ondra Cada <email@hidden>
- Date: Thu, 16 Aug 2001 10:34:09 +0200
Scott,
>
>>>>> Scott Anguish (SA) wrote at Thu, 16 Aug 2001 02:56:36 -0400:
SA> to set it to a specific value (yes, no)
SA>
SA>
SA> [activateCheckBox setIntValue:1]; (checked)
SA>
SA> to get the value, use intValue
You can use it, but state/setState is a better thing here. RTFM:
=== NSButton.html ===
To set the button's state directly, use setState:. To cycle through all
available states, use setNextState. Note that the state is used as the value,
so NSControl methods like setIntValue: actually set the state.
=== cut here ===
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc