beautypg.com

Roll protos 6 – Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 257

background image

C H A P T E R 6

Pickers, Pop-up Views, and Overviews

Summary

6-57

Validate:

function

,

// returns array of invalid

// refs

ModifyEntryPath:

function

,

// entry modification of Names

GetRoutingInfo:

function

,

// retrieves routing info

GetItemRoutingFrame:

function

, // converts routing info

GetRoutingTitle:

function

,

// creates target string

PrepareForRouting:

function

,

// strips extra info

...

}

protoPeoplePicker

6

aProtoPeoplePicker := {

_proto:

protoPeoplePicker,

class:

symbol

,

// type of data to display

selected:

array

,

// references to selected items

...

}

protoPeoplePopup

6

aProtoPeoplePicker := {

_proto:

protoPeoplePicker,

class:

symbol

,

// type of data to display

selected:

array

,

// references to selected items

context:

symbol

,

// view with PickActionScript

// method

options:

array

,

// options for protoListPicker

PickActionScript:

function

,

// called when pop-up is closed

...

}

Roll Protos

6

protoRoll

6

aProtoRoll := {

_proto:

protoRoll,

viewFlags:

constant

,

viewBounds:

boundsFrame

,

items:

array

,

// templates for roll items