beautypg.com

Summary of special-purpose data storage objects 12, Data structures 12, Functions and methods 12 – Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 523

background image

C H A P T E R 1 2

Special-Purpose Objects for Data Storage and Retrieval

Summary of Special-Purpose Data Storage Objects

12-17

Summary of Special-Purpose Data Storage Objects

12

This section summarizes data structures, objects, methods and global functions
used by Newton devices for specialized data storage purposes.

Data Structures

12

Package Reference Information Frame

12

{

size:

nBytes

, // pkg’s uncompressed size in bytes

store:

aStore

, // store on which pkg resides

title:

string

,// user-visible package name string

version:

int

, // version number

timeStamp:

int

,// date and time pkg was loaded

creationDate:

int

, // date pkg created

copyProtection:

value

, Non-nil means protected.

dispatchOnly:

value

, // Non-nil means dispatch-only pkg.

copyright:

string

, // copyright information string

compressed:

value

, // Non-nil value means pkg is compressed

cmprsdSz:

int

,// compressed size of pkg in bytes

numParts:

int

, // number of parts in pkg

parts: [

p1

,

p2

, …

pN

], // parts comprising this package.

partTypes:[

sym1

,

sym2

, …

symN

] // parallel to parts array.

Functions and Methods

12

Packages

12

GetPackageNames(

store

)

GetPackages()

GetPkgRef(

name

,

store

)

GetPkgRefInfo(

pkgRef

)

IsValid(

obj

)

IsPackage(

obj

)

IsPackageActive(

pkgRef

)

MarkPackageBusy(

pkgRef

,

appName

,

reason

)

MarkPackageNotBusy(

pkgRef

)

ObjectPkgRef(

obj

)