Having covered some of the basic use of multicast events, in this second post I shall start to build the implementation. In this first iteration we will provide the basics of a multicast event – managing and calling multiple handlers and the ability to enable and disable an event. The test project used in the previous video demonstration may also now be downloaded for you to experiment with if you wish.
My second post on multicast events is now up, and here’s a video showing the basics. It was also an excuse to get to grips with the video capturing software – CamStudio – (and technique!), which proved to be a frustrating exercise to say the least, but I am quite pleased with the eventual results and plan to do more in the future.
I remember one of the things that got me excited when I first read about the as-then new fangled C# and .NET stuff coming out of Microsoft was the idea that a single event could have multiple handlers. Cutting a long and irrelevant story short, my interest in .NET waned, although my interest in multicast events did not. For a long time I was resigned to having to do without them, but then realised that this was a self imposed penury. So I got out my jail breaking toolkit (Delphi) and set about tearing down the walls of my prison. And here’s how I did it…
The first two canned videos from last weeks preview of Tiburon have appeared on the CDN site. Of the two, one covers some new language features in C++ Builder, but the one of most interest to Delphi developers I think is the one that demonstrates some of the VCL improvements and changes. See if you can spot Nick Hodge’s deliberate mistake. At least, I hope it was deliberate. 😉 More videos and sessions should be coming online soon.
Explores the relevance of authorities supposed to be making a good case for anonymous methods
A roundup of that part of the Preview I saw of Tiburon – the next release of Delphi from CodeGear.