FYI, my solution was this (previously sent privately):
Perhaps this is something that you could let the system handle for you in an
Obj-C validator?
<http://developer.apple.com/documentation/Cocoa/Conceptual/UIValidation/UIVa
lidation.html>
________________________________
From: applescript-studio-bounces+tophu=email@hidden
[mailto:applescript-studio-bounces+tophu=email@hidden] On Behalf
Of Jasper Van Proeyen
Sent: Friday, March 18, 2005 2:54 PM
To: AppleScript-Studio mail
Subject: Re: Temporarily deactivation
Thanks both for your solutions.
Because I'm not that familiar with other programming languages, I used the
one from Brad (it works now, btw), but I'm sure that Christopher's solution
will be more clean.
It's just one of the drawbacks of AppleScript I guess.
Thanks again,
Jasper.
On Mar 18, 2005, at 04:27 PM, Brad wrote:
Jasper,
I use the "tag" property to allow me to quickly enable/disable
buttons, fields, etc. Below is a simple example. The button that is attached
to the "clicked" handler is setup as a toggle button. It's tag is 0. All of
the other buttons in the window have a tag other than 0. This code will
enable/disable any button in the window with a tag of 1.
on clicked theObject
set theWindow to the window of theObject
if the state of theObject is 1 then
set the enabled of every button of theWindow whose tag is 1 to true
else
set the enabled of every button of theWindow whose tag is 1 to false
end if
end clicked
Brad
-----
There are 10 types of people in the world: those who understand
binary and those who don't.
On Mar 18, 2005, at 12:34 AM, Jasper Van Proeyen wrote:
Hi,
is there any easy way to temporarily deactivate all buttons
in a window when one of the buttons is clicked.
Note that there already are some buttons disabled.
Right now I have to ask for the state of every button,
disable them and then call back every state (CPU is not happy with this).
Regards,
Jasper.
_______________________________________________
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/bbumgarner%40earth
link.net
This email sent to email@hidden
_______________________________________________
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/trianglejuice%40ma
c.com
This email sent to email@hidden
_______________________________________________
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