beautypg.com

Summary 15, Data structures for filing 15 – Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 586

background image

C H A P T E R 1 5

Filing

15-20

Summary

Summary

15

This section summarizes the data structures, protos, functions, and methods used
by the Filing service.

Data Structures for Filing

15

Application Base View Slots

15

myAppBaseView :=

{_parent: {…},// root view

_proto: {// myAppBaseViewTemplate

_proto: {…}, // protoApp,

// slots you supply in myAppBaseViewTemplate

appObjectUnfiled: "Unfiled Items",

appAll: "All Items",

appObjectFileThisOn: "File this item on",

storesFilter: NIL,

doCardRouting: 1,

GetTargetInfo: ,

labelsFilter: NIL,

appObjectFileThisIn: "File this item in",

appSymbol: |myApp:mySig|,

…},

// my filing button template, defined in app base view

myfilingButton: {_parent: <2> // myAppBaseView,

_proto: protoFilingButton, …},

// my new folder tab template, defined in app base view

myNewFolderTab: {…}, // see summary on page 15-21

…}

Target Information Frame

15

// returned by the GetTargetInfo method

{target:

item

,// the item to file or route

targetView:

view

, // filing messages are sent to this view

targetStore:

store

, // store on which target resides

// this frame may also include your own slots

…}