Building a library with functions with callbacks
Mark Smith
mark at maseurope.net
Mon Jul 11 18:47:06 EDT 2005
I'd imagine that you'd have to include a third parameter - the long
name of the fld, cd, stack or whatever that called the function ie. the
long name of me:
Mark
---------------------------
Alex Tweedly wrote:
I'm sure I've done this before, but can't remember where, and can't
figure out how to do it again.
Sigh :-( Another CRAFT day :-)
I want to build a library where some of the functions in it have
parameters which are callbacks;
agtMyFunction pData, pCallBackMessage
the functions will return immediately, and later when the right
circumstances exist, the library will send pCallBackMessage to the
object which called the library.
(i.e. just like the callbacks on the socket library).
How do you find which object *called* the library ? (not "target()" -
that's the object that originally received a message - if its script has
called a handler in, say, the card script and that calls the library,
then I need to find the card, not the original object)
Thanks
--
Alex Tweedly http://www.tweedly.net
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.11/45 - Release Date:
09/07/2005
More information about the use-livecode
mailing list