Craig Newman wrote:
> I would be interested as well in what property would also show such

> esoterica as “the messageMessages” which does not appear on the
> above list.
 
The messageMessages has come up several times on this list and in the forums.  
The list has no search interface, but the forums bring me to three discussions 
where I've used the messageMessages for my 4W Flight Recorder tool:
 
https://forums.livecode.com/viewtopic.php?f=104&t=38836&p=227558&#p227558
"The underlying mechanism is a seldom-needed global property named the 
messageMessages. Off by default, when true the engine will send a message 
notifying about every call being made. When there's a matching handler in the 
message path the message will be messageHandled, and when no matching handler 
is queued the message sent will be messageNotHandled (never used that myself, 
but might be useful is some rare cases involving the dispatch command)."


https://forums.livecode.com/viewtopic.php?f=9&t=33553&#p187061
"It's not documented by the core team because it was implemented as an ad hoc 
solution and is subject to change. So use it at your own risk, with the 
knowledge that any code dependent on it may need to be rewritten in the future.
...
To see a practical example in action see my tool 4W Flight Recorder, available 
in Stacks section of LiveNet - in the IDE choose Development -> Plugins -> 
GoLiveNet."


https://forums.livecode.com/viewtopic.php?f=7&t=37850&p=223048&#p223048
"That's where the messageMessages global property comes in. It's rarely needed 
except with making diagnostic tools like this, but is a godsend when you do. 
When true, the messageMessages sends a messageHandled message for every event, 
handler, and function call, just before the receiving handler gets it. That's 
the heart of what Flight Recorder uses for logging.

And by putting the messageHandled message into a frontScript, FR will get the 
message before anything else, better ensuring that anything downstream may 
swallow the message in a way that would prevent FR from being able to log it.

FrontScripts are widely used and well documented. In the IDE's Dictionary look 
for the "frontScripts" function, and the "insert script" and "remove script" 
commands.

The messageMessages property doesn't appear in my copy of the Dictionary, but 
it's so specialized almost no one needs it. For that the scripts in FR 
illustrate usage well enough if you want to explore it."

I'd be curious to hear if anyone has ever used the messageMessages for anything 
other than a development tool.
 
--  
Richard Gaskin
Fourth World Systems
 

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to