C H A P T E R 2 2
Using the Transport Interface
For example, the built-in Print transport uses the
for its preferences view. Since the
method does not exist in
the Print transport, the In Box preference element is not displayed, as shown in
The Info button is included in the
template so you can
give the user access to About and Help views for the transport. The button is built
from the standard
proto. To include items on the Info picker,
you must provide handler methods in the
slot of your transport
preferences view. The
template includes a handler for
the "Help" item that displays the system help book, open to the routing section.
You'll need to override this method if you want to provide your own help information.
You can add custom items to the Info picker by supplying
methods in the
frame. For more information about
these methods and how the Info button works, see "protoInfoButton" (page 6-10)
in Newton Programmer's Reference.
slot in the
holds the initial
preferences associated with the transport. This slot is set up by default with a frame
holding an initial selection of preferences items. The child views of the
proto are designed to manipulate the slots in this frame.
If you want to override the default preferences frame, you need to construct an
identical one with different values. You can't use a
slot in your default
frame since the contents of the
slot are stored in a
slots can't be stored in soup entries.