June 2016
Intermediate to advanced
470 pages
9h 49m
English
The publish/subscribe pattern, also known as Observer, is a very popular design pattern. It comes under a lot of different names, but the final scope is always the same: alert someone when something interesting happens to it. In this recipe, we'll see some utilization of the TMessageManager class, the publish/subscribe mechanism implemented in the System.Messaging.pas unit.
What exactly does the cross-platform TMessageManager class do? Put simply, it allows you to listen for events and assign actions to run when those events occur. Just like in VCL or FireMonkey, you know about mouse and keyboard events that occur on certain user interactions. These are very similar, ...
Read now
Unlock full access