• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSButton (Switch)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: NSButton (Switch) (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Mac OS X 10.1 Dock Menu Description and APIs
  • Next by Date: Re: Changing the case of a filename?
  • Previous by thread: Re: NSButton (Switch)
  • Next by thread: Re: NSButton (Switch)
  • Index(es):
    • Date
    • Thread