[Squeakland] Test if script is running ?

Alan Kay alan.kay at squeakland.org
Mon Oct 30 04:30:32 PST 2006


Both of you are right ... it would be a good addition to have an Etoy 
test for the status of a script.

Cheers,

Alan

At 03:05 AM 10/30/2006, Scott Wallace wrote:
>Hi, Karl,
>
>No, I don't think there's any such feature directly accessible in the
>current tile system, though a good case could be made for adding one.
>
>In the meantime, if you're willing to resort to textual code in a
>single script, you can use the expression:
>
>    (self existingScriptInstantiationForSelector: #foo) status = #ticking
>
>to determine whether an object's script named "foo" is currently
>ticking.
>
>Cheers,
>
>   -- Scott
>
>
>On Oct 29, 2006, at 3:11 PM, karl wrote:
>
> > I have a button thats starts a script and that script is 'ticking'
> > for a
> > while and then pauses.
> > Is there a way to test if the script is running so multiple clicks on
> > the button does not restart the 'ticking' script ?
> > I tested to drop the script name tile in a tester but that was not
> > possible.
> >
> > Karl
> > _______________________________________________
> > Squeakland mailing list
> > Squeakland at squeakland.org
> > http://squeakland.org/mailman/listinfo/squeakland
>
>_______________________________________________
>Squeakland mailing list
>Squeakland at squeakland.org
>http://squeakland.org/mailman/listinfo/squeakland



More information about the Squeakland mailing list