Re: Listen for messages in FrontScripts

2012-01-03 Thread Pete
OK, sorry didn't realise you'd already read it. You're turning up some interesting stuff. I guess my only comment is that I prefer to always specify a target for dispatch, etc. Defaults are great but being specific relieves my already overloaded brain of having to remember what they are!. Pete

Re: Listen for messages in FrontScripts

2012-01-03 Thread Todd Geist
On Tue, Jan 3, 2012 at 1:24 PM, Bob Sneidar wrote: > That is a great writeup on the subject, Thanks! > and seems to indicate, although indirectly, that send and dispatch work > the same as regards the context of the called handler. I'm still not sure > this is the case, but if so, then the di

Re: Listen for messages in FrontScripts

2012-01-03 Thread Bob Sneidar
That is a great writeup on the subject, and seems to indicate, although indirectly, that send and dispatch work the same as regards the context of the called handler. I'm still not sure this is the case, but if so, then the dictionary needs to be updated in this regard. Bob On Jan 3, 2012, a

Re: Listen for messages in FrontScripts

2012-01-03 Thread Bob Sneidar
On Jan 3, 2012, at 12:01 PM, Todd Geist wrote: > Send is different because messages not handled but the target DO NOT > continue down the message path. Send does NOT resolve "me" to the behavior > script if there is any. Like Dispatch the context is the receiving object, > not the sending one. I

Re: Listen for messages in FrontScripts

2012-01-03 Thread Todd Geist
Thanks Pete, That is where I began :-) On Tue, Jan 3, 2012 at 12:22 PM, Pete wrote: > I think it's time to refer to the message path bible - Richard Gaskin's > great article at > http://www.fourthworld.com/embassy/articles/revolution_message_path.html > Pete > > On Tue, Jan 3, 2012 at 12:01 PM,

Re: Listen for messages in FrontScripts

2012-01-03 Thread Pete
I think it's time to refer to the message path bible - Richard Gaskin's great article at http://www.fourthworld.com/embassy/articles/revolution_message_path.html Pete On Tue, Jan 3, 2012 at 12:01 PM, Todd Geist wrote: > On Tue, Jan 3, 2012 at 10:09 AM, Bob Sneidar wrote: > > > If I am not mistak

Re: Listen for messages in FrontScripts

2012-01-03 Thread Todd Geist
On Tue, Jan 3, 2012 at 10:09 AM, Bob Sneidar wrote: > If I am not mistaken, sent or dispatched messages are always sent to the > card if another target is not specified, hmm, Not what I see Send, dispatch, and call use the current object as the target if none is specified. It would only be the

Re: Listen for messages in FrontScripts

2012-01-03 Thread Bob Sneidar
If I am not mistaken, sent or dispatched messages are always sent to the card if another target is not specified, but of course must "pass through" the frontscript first. I believe that would be the way to put it. That matters because the send command changes the current context of the command a

Re: Listen for messages in FrontScripts

2012-01-03 Thread Todd Geist
On Tue, Jan 3, 2012 at 9:29 AM, Bob Sneidar wrote: > All of them, right? Yes A front script appears to be inserted into the message path before ( or above ) any target. So it has a chance to handle any message that is sent to any target. I know this is common knowledge to the old timers here,

Re: Listen for messages in FrontScripts

2012-01-03 Thread Bob Sneidar
All of them, right? Bob On Dec 31, 2011, at 1:16 PM, Todd Geist wrote: > Hello > > What messages can you listen for in FrontScripts? I know user input > messages can be intercepted there, but I am not sure about what other > engine Messages, or if it is possible to listen for custom messages.

Re: Listen for messages in FrontScripts

2012-01-02 Thread Mark Wieder
Todd- Monday, January 2, 2012, 10:54:41 AM, you wrote: > I was using metaphor in my own head of messages "raining" down on your > stacks. I don't like this metaphor any more. I don't think it fits. I think your original conception wasn't too far off the mark. But I think what you've run into is

Re: Listen for messages in FrontScripts

2012-01-02 Thread Todd Geist
On Sun, Jan 1, 2012 at 8:38 PM, Mark Wieder wrote: > Todd- > > Sunday, January 1, 2012, 4:40:47 PM, you wrote: > > Why would you want to do this? The only time I issue a dispatch > without a target is in a behavior script, and in that case the message > is delivered to the parent object, which is

Re: Listen for messages in FrontScripts

2012-01-01 Thread Mark Wieder
Todd- Sunday, January 1, 2012, 4:40:47 PM, you wrote: > It appears from my testing that if one use dispatch with out a target Why would you want to do this? The only time I issue a dispatch without a target is in a behavior script, and in that case the message is delivered to the parent object,

Re: Listen for messages in FrontScripts

2012-01-01 Thread Todd Geist
As a follow up… It appears from my testing that if one use dispatch with out a target in a frontScript that the message travels through the frontScirpt and the drops down the message path to Libraries or BackScripts. No regular Stacks or cards or controls get the message. So custom messages just

Re: Listen for messages in FrontScripts

2011-12-31 Thread Todd Geist
Thanks, Richard! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Listen for messages in FrontScripts

2011-12-31 Thread Richard Gaskin
Todd Geist wrote: What messages can you listen for in FrontScripts? I know user input messages can be intercepted there, but I am not sure about what other engine Messages, or if it is possible to listen for custom messages. You can trap anything in a frontScript by just adding a handler with

Listen for messages in FrontScripts

2011-12-31 Thread Todd Geist
Hello What messages can you listen for in FrontScripts? I know user input messages can be intercepted there, but I am not sure about what other engine Messages, or if it is possible to listen for custom messages. Thanks & Happy New Year! Todd ___ use-