beautypg.com

Functions and methods 22 – Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 827

background image

C H A P T E R 2 2

Transport Interface

Summary of the Transport Interface

22-39

protoAddressPicker

22

anAddressPicker := {

_proto: protoAddressPicker, // address picker

viewBounds:

boundsFrame

, // location and size

text:

string

, // picker label

otherText:

string

, // last item (pops up people picker)

selected:

array

, // name refs to be initially selected

alternatives:

array

, // name refs to be shown in picker

class:

symbol

, // name ref data def class

_picker:

viewTemplate

, // picker for other addresses

...

}

protoTransportPrefs

22

myTransportPrefs := {

_proto: protoTransportPrefs, // transport prefs proto

viewBounds:

boundsFrame

, // location and size

title:

string

, // transport name

appSymbol:

symbol

, // transport appSymbol

silentPrefs:

frame

, // controls checkbox element in prefs

sendPrefs:

frame

, // controls send element in prefs

outboxPrefs:

frame

, // controls out box prefs element

inboxPrefs:

frame

, // controls in box prefs element

infoPrefs:

frame

, // defines more info button choices

...

}

Functions and Methods

22

Utility Functions

22

RegTransport(

symbol

,

transport

)

UnRegTransport(

symbol

)

DeleteTransport(

symbol

)

GetCurrentFormat(

item

)

GetGroupTransport(

groupSymbol

)

QuietSendAll(

transportSym

) // platform file function

ownerApp

:Refresh()

ownerApp

:RemoveTempItems(

transportSym

)