Andy's comments and positioning...

Robert Brenstein rjb at rz.uni-potsdam.de
Thu Feb 12 03:53:16 EST 2004


>Jeanne A. E. DeVoto wrote:
>
>>>  What is the advantage of inserting backscript as opposed to just
>>>  start using? Aside of course from the difference that I can insert
>>>  script of any object as a backscript.
>>
>>  That's pretty much it. In a plugin, the natural place for the
>>  openStack handler is in the stack script, and if you start using the
>>  plugin stack, you need to put a little extra logic into the openStack
>>  handler to make sure it doesn't run every time any stack is opened
>>  (because it's going to be in the message path, if you start using
>>  it). Putting the library code in a button instead sidesteps the whole
>>  issue.
>
>Alternatvely, for libraries you can put all UI-related stuff like openStack
>handlers in the card script, safely outside the message path of other
>stacks.
>
>--
>  Richard Gaskin

Agreed. I do it also for non-library stacks. Since openStack runs 
only when the first card is shown, the first card is the most natural 
place for it IMHO. At least for the code that is stack-specific. But 
otherwise, Jeanne's points are valid as they apply to other handlers 
(i.e resumestack).

Robert


More information about the use-livecode mailing list