dispatch and the target
J. Landman Gay
jacque at hyperactivesw.com
Fri Aug 12 14:04:57 EDT 2011
On 8/12/11 12:04 PM, Bob Sneidar wrote:
> You can refer to the current stack using the topStack.
Yes, but with caveats. If the stack isn't a toplevel (regular document)
stack, then it (usually) won't be the topstack. It might be the
defaultstack though.
> A library
> should be capable of working no matter which stack has the focus. I
> would rewrite the scripts in the library stack to be independent.
> Also, you should not have to dispatch to a library stack. Start Using
> puts the stack script in the backScript, and therefore in the message
> path.
>
> This means however, that all your scripts need to be in the stack
> script and not other objects.
That's true, "start using" only works with stack scripts. You can use
the script of any object by doing "insert script of <object reference>
into back". That gives more flexibility and allows the in-use script to
be stored anywhere.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list