Enable button if text field nonempty in ASObjC
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