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
)
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна