too much input on a button causes NSReceiverEvaluationScriptError

hi…

Is there a way to limit the input of a button / onClick ?

What I mean is, I have experienced that if I have an action occur from clicking a button, that say ends up doing a delay-- like 2-3 seconds… If I click a button during that delay, I get an NSReceiverEvaluationScriptError – and ideally I would like it so that all clicks to the buttons are ignored until the delay is over.

I suppose I could set all my buttons’ enabled to false before the delay and turn them back to true afterwards… but I wondered if there is a better way to handle this?

Thank you.

-patrick

You have not provided enough information for anyone here to help. Sounds like you’ll need to show some code that displays this behaviour.