Command bindings

The TCommandBinding base class is a convenient abstraction for binding commands to targets. Derive a subclass from TCommandBinding in the event that you want to bind a command to a specific target.

Commands do not normally know which target they are operating on. They know only that they can operate on a certain type of target and what action they can take against this target.

Command binding allows you to keep a command log or history. Further, because commands can both have a binding and not have a binding to a target, it is possible to have a single bound command that is capable of calling other commands on the same target.

The first (bound) command simply passes its target on to the other (unbound) targets. This can be a very efficient way of executing multiple commands on a single target.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker