View Single Post
09-01-16, 02:17 AM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
I've done the same using a table as a pseudo callback object that has metamethods that are used to further control callbacks. The callback object is passed as self to the function given as well as by the wrapper API itself.

It would be much better if there was C code that did this or something similar instead of having to create invisible frames to handle events.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote