UPDATE: Make stack close itself

Richard Gaskin ambassador at fourthworld.com
Wed May 21 14:28:03 EDT 2014

Alejandro Tejada wrote:
> Idle command only runs on the stack when it has
> the mouse pointer focus... or at least this is how
> I understand this behavior of Idle.

Good catch, Alejandro.

There are a handful of messages which have this sort of "existential" 
behavior (mousewithin is another) - from the Dictionary entry for "idle":

    Note: If there is no idle handler anywhere in the message path,
    no idle message is sent.

That Dictionary entry also provides examples of using timers instead, 

    Note: Usually, it is easier and more efficient to use the send
    in time form of the send command than to use an idle handler,
    especially if a task needs to be executed at regular intervals.

One of the reasons LiveCode is arguably the fastest xTalk ever is that 
great care has been put into pruning messages and token table lookups....

  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys

More information about the Use-livecode mailing list