• 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
Enable button if text field nonempty in ASObjC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Enable button if text field nonempty in ASObjC


  • Subject: Enable button if text field nonempty in ASObjC
  • From: Marion Dickten <email@hidden>
  • Date: Thu, 18 Apr 2013 10:18:39 +0200

My first ASObjC app is starting to work nicely. Now I'd like to add the usual convenience code to prevent incorrect use. My users need to fill in a text field before they can press the "Do It!" button. The simple way would be to let them click the button, check whether the text field is nonempty, and then put up an alert if it is empty. However, this isn't really what I want. I want the button to get enabled only after the user has typed in something. Can this be done in ASObjC? If I use ObjectiveC, I know how to do it (I could use textFieldDidEndEditing, for instance).

TIA,
Marion
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Enable button if text field nonempty in ASObjC
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: do shell script, curl and cookies
  • Next by Date: Re: Enable button if text field nonempty in ASObjC
  • Previous by thread: Re: Applescript in the terminal (fwd)
  • Next by thread: Re: Enable button if text field nonempty in ASObjC
  • Index(es):
    • Date
    • Thread