[ANN] simple publisher/subscriber library for LiveCode

Mark Wieder mwieder at ahsoftware.net
Mon May 6 15:58:35 EDT 2013


Andre Garzia <andre at ...> writes:

> Mark, I just checked revOnline (the web version) and could not find your
> stack, maybe it was lost in the revonlinepocalypse of the 2000ish years)

Yeah, OK. I'll post it later tonight. I just had a quick look at your
library. The idea and implementation is pretty much the same. I went with
the extra complexity of allowing controls to register interest in messages
coming from a single object or from any object, something like (from memory)

registerEvent pEvent, pTarget, pSource

where pSource can be an id or the default value of "*". That way when the
dispatcher receives an event it can selectively dispatch the event to only
those listeners who have registered interest in the source object.

-- 
 Mark Wieder
 mwieder at ahsoftware.net






More information about the use-livecode mailing list