Apple Newton Utilities Guía de usuario Pagina 873

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 942
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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.
Vista de pagina 872
1 2 ... 868 869 870 871 872 873 874 875 876 877 878 ... 941 942

Comentarios a estos manuales

Sin comentarios