Apple Newton Utilities Guide de l'utilisateur Page 873

  • 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 872
CHAPTER 24
Built-in Communications Tools
AppleTalk Functions 24-15
The following is an example that shows the use of this function:
ChooserSample := {
// open network connection
openNetworkScript: func()
begin
GetRoot().NetChooser:openNetChooser(nil,"=:LaserWriter@",ni
l, self, "Use printer, sir", "Printer", "printers");
end,
// called when the user selects an item
networkChooserDone: func(currentSelection, currentZone)
begin
Print("Current Selection =" && currentSelection);
Print("Current Zone =" && currentZone);
end
};
The following is an example of running this code in the inspector:
ChooserSample:OpenNetworkScript()
#1A TRUE
// select the network entity, close the Chooser
"Current Selection = Idiot Savante"
"Current Zone = RD1/NewHaven-LocalTalk"
The NetChooser methods are described in detail in “NetChooser Methods”
(page 21-81) in Newton Programmers Reference.
Vue de la page 872
1 2 ... 868 869 870 871 872 873 874 875 876 877 878 ... 941 942

Commentaires sur ces manuels

Pas de commentaire