Apple Newton Utilities Guia do Utilizador Página 873

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 942
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 872
1 2 ... 868 869 870 871 872 873 874 875 876 877 878 ... 941 942

Comentários a estes Manuais

Sem comentários