Blitz's Event System

BlitzMax Forums/BlitzMax Programming/Blitz's Event System

Macguffin(Posted 2009) [#1]
Hey folks,

I'm looking into shifting my UI to use Blitzmax's event system, and am having some trouble finding coherent information to explain how it works. Can anyone point me at something?

I have a basic understanding of how a system like this should work, but from what I can gather, the devil will be in the details on this.

Thanks.


Macguffin(Posted 2009) [#2]
Actually, from what I can gather, the Blitz event system doesn't support a subscriber / publisher model, is that correct? If so, I may attempt to roll my own light-weight system.


Brucey(Posted 2009) [#3]
Qt uses a similarly nice Signal/Slot event model, which I think is a great system.


Macguffin(Posted 2009) [#4]
Thanks, Brucey. I think since I don't need this to do a lot right now, I'll either roll my own using the Observer pattern (as you also mention in your Qt blog), or maybe set up a type that wraps the native event usage with the ability to subscribe/publish (if that's even workable).


Macguffin(Posted 2009) [#5]
Or... are Event Hooks a way to implement sub/pub?

As you may be able to tell, I'm having some trouble parsing all this. :/