Apple Newton Utilities Guide de l'utilisateur Page 821

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 942
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 820
CHAPTER 22
Transport Interface
Using the Transport Interface 22-33
Most transports can use the built-in name reference data and view denitions to
handle and display name references. For example, one place you might need to use
these is if you need to build a string representing the address or addresses chosen in
the
protoAddressPicker. The selected slot of the protoAddressPicker
contains an array of name references for the names selected by the user in the picker.
You can use the name reference data denition method
GetRoutingTitle to
return a string representing all the selected addresses, truncated to the length you
specify. Alternately, you can use the transport method
GetNameText to do the
same thing.
Providing a Preferences Template 22
Transport preferences are accessed and changed from the information button in the
In/Out Box. (The information button is the small button with an “i” in it.) Each
transport with a preferences view is listed in the information picker, as shown in
Figure 22-8.
Figure 22-8 Information picker and preferences view
To make a preferences view for a transport, create a template with a prototype of
protoTransportPrefs. In your transport object, store a reference to your
preferences view template in the
preferencesForm slot. When the information
picker is displayed, it automatically includes an item for each transport that has a
preferences template registered in the transport’s
preferencesForm slot.
Each transport may add its own preferences view for conguring any options that
apply to that transport. Some common options include
enable/disable logging
deferred/immediate send
enable/disable listening
Information picker Preferences view
Vue de la page 820
1 2 ... 816 817 818 819 820 821 822 823 824 825 826 ... 941 942

Commentaires sur ces manuels

Pas de commentaire