Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enabling a text field with a switch



Alright, alright I RTFM'd and a few hours later figured it out.

Matt, you gave an awesome but short introduction to AppleScript Studio at the AppleScript Pro Session in Monterey, CA back in 2004 that I attended. Are any AppleScript Studio Classes out there so beginners wouldn't need to RTFM so much?

--Steve

On Sep 13, 2006, at 3:18 PM, Matt Neuburg wrote:

On Wed, 13 Sep 2006 09:52:58 -0400, Steven Valenti <email@hidden>
said:
>I have an NSButton (Switch) and a text field that is currently dimmed
>(Somehow). When the check box is checked on the button I want the text
>field to be Enabled or Editable so user can add text. What handler do I
>use and how do I go about doing this?


Clicking on the button is its "clicked" action, as with any button. Now just
RTFM - you will see how to get the checked state of a checkbox (its "state")
and you will see how to access the "enabled" or "editable" properties of
text field. m.


 --
 matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
 A fool + a tool + an autorelease pool = cool!
 AppleScript: the Definitive Guide - Second Edition!
 <http://www.amazon.com/gp/product/0596102119>







_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden
References: 
 >Re: Enabling a text field with a switch (From: Matt Neuburg <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.