
2.5.3 Relationship Among the Notifier, Objects, and the Application
It is not necessary for you to interact with the Notifier directly in your application. XView
has a two-tiered scheme in which the packages that support the various objects—panels, can-
vases, scrollbars, etc.—interact with the Notifier directly, registering their own callback pro-
cedures. The application, in turn, registers its own callback procedures with the object.
Typically, when writing an XView application, you first create the various windows and other
objects you need for your interface and register your callback procedures with the objects.
Then you pass control to the Notifier. The work is done in the various callback procedures.
Let’s illustrate the relationship of the Notifier. Figure 2-15 illustrates how the Notifier
receives X events from the X server, as well as operating system “events” such as signals or
input on file descriptors. Event procedures are supplied by XView packages as well as the
application itself.
The main point of Figure 2-15 is to clarify the double-tiered callback scheme. How you reg-
ister the callback procedures will be explained in Chapter 5, Canvases and Openwin, and
Chapter 7, Panels.
One point worth mentioning is the distinction between the event procedures for the canvases
and the notify procedures for the panel items. They are all callback procedures, but they
have different purposes. The ...