beautypg.com

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

Page 256

background image

C H A P T E R 6

Pickers, Pop-up Views, and Overviews

6-56

Summary

protoNameRefDataDef

6

aProtoNameRefDataDef := {

_proto:

protoNameRefDataDef,

name:

string

,

// name to identify picker in

// top left corner

class:

symbol

,

// specify class for new name

// references

entryType:

symbol

,

// class for new soup entries

columns:

array

,

// column specifications

singleSelect:

Boolean

,

// single selection if non-nil

soupToQuery:

string

,

// union soup to query

querySpec:

frame

,

// query to use

validationFrame:

frame,

// checks validity of entry

MakeCanonicalNameRef:

function

,// make blank name ref

MakeNameRef:

function

,

// make name reference

Get:

function

,

// returns data from specified

// object

GetPrimaryValue:

function

,

// retrieves data from object

HitItem:

function

,

// called when item tapped

MakePopup:

function

,

// called before making pop-up

// view

Tapped:

function

,

// called when tap has been

// handled

New:

function

,

// called when tap on New button

DefaultOpenEditor:

function

,// open an edit view

OpenEditor:

function

,

// open an custom edit view

NewEntry:

function

,

// returns a new soup entry

ModifyEntry:

function

,

// returns a modified soup entry

Validate:

function

,

// validates paths

...

}

protoPeopleDataDef

6

aProtoPeopleDataDef := {

_proto:

protoPeopleDataDef,

entryType:

symbol

,

// class for new soup entries

soupToQuery:

string

,

// union soup to query

primaryPath:

symbol

,

// the primary path column

primaryPathMapper:

frame

,

// maps entry class to data

Equivalent:

function

,

// compares two name refs