beautypg.com

Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 731

background image

C H A P T E R 1 9

Built-in Applications and System Data

Summary

19-57

Time Zone Functions

19

GetCityEntry(

name

) // returns information about the

// specified city

GetCountryEntry(

name

) // returns information about the

// specified country

worldClock

:SetLocation(

whichCity

) // sets the current city

worldClock

:NewCity(

newCity

, nil,

makeHome

) // adds a city

Notes Methods

19

paperroll:

MakeTextNote(

string

,

addIt

) // adds a text note to

// Notes soup

paperroll

:NewNote(

note

,

goto

,

store

) // adds a note to

// Notes soup

Prefs and Formulas Functions

19

RegFormulas(

appSymbol

,

formulasTemplate

) //registers a template

// to be added to the Formulas roll

UnRegFormulas(

appSymbol

) //unregisters a template added

// with RegFormulas

RegPrefs(

appSymbol

,

prefsTemplate

) //registers a template

// to be added to the Prefs roll

UnRegPrefs(

appSymbol

) //unregisters a template added

// with RegPrefs

Auxiliary Button Functions

19

app

:AddAuxButton(

buttonFrame

) // message sent when

// RegAuxButton is called with your app as destApp

GetAuxButtons(

appSymbol

) // returns array of your app’s

// buttons

RegAuxButton(

buttonSymbol, template

) // registers a button to

// be added to another application

app:

RemoveAuxButton(

buttonSymbol

) // message sent when

// UnRegAuxButton is called for one of your app’s

// buttons

UnRegAuxButton(

buttonSymbol

) // removes an auxilary button

// added with RegAuxButton