static Bundle main;
static MutableIndexed units_path;
OutputStream (s) help OutputStream s done MutableKeyed done;
private pointer load String object unit String unit;
object
, returning the underlying operating system handle
upon success, or the NULL pointer upon failure. An error
is
signaled in case of the latter. The unit
is the name of the unit
supposedly contained in the object
. This unit, when present, will
be resolved.
pointer loadUnit String unit fromObject String object;
unit
from the object
.
pointer load String object;
object
name and invoke loadUnit
fromObject
.
void load MutableArray arguments;
:main-bundle-dir
option and allocate the main
bundle if
found.
String locate-file String file extension String ext with-version: String version = nil;
instance (id) main;
void registerUnitDirectory String dir;
dir
as to contain resources for one of the units.
public String directory;
pointer handle;
id (self) init String d;
String locate-file String file extension String ext with-version: String version = nil;
file
for the version
in this bundle. If not found,
search the main bundle. Iff still not found, it is searched for in
the registered unit directories.
The extension ext
, if not nil
, is appended to the file
, with a
dot (.
) in between.