Docs for IDE hooks
Mark Wieder
ahsoftware at sonic.net
Sat Jun 24 11:21:38 EDT 2017
On 06/24/2017 02:58 AM, AndyP via use-livecode wrote:
> Hi Richard,
> Thanks for pointing this out.
> Do you know if there is an updated full list of messages one can subscribe
> to?
> I've looked in the dictionary and searching for subscribe and publish does
> not bring up any info?
At the moment there's a limited list of messages.
Look in the script of revidelibrary.8.livecodescript... the function
revIDEMessages() has a list and there are three more in the
revIDEMessageIsValid() function. From the messagebox, issuing the
command "put revIDEMessages()" will give you most of them.
Note that none of this is documented at the moment. If you're going to
try to subscribe to a message, make sure to unsubscribe when you close
the subscribing stack or issue a revIDEunsubscribeall command, otherwise
you'll end up with some unexpected experiences. Even there's no explicit
documentation for the pubsub mechanism, the comments in the script are
very good.
--
Mark Wieder
ahsoftware at gmail.com
More information about the use-livecode
mailing list