ObjectModule

Object List Next Object

Definition:

Represents a collection of objects that share a module. ObjectModule is preset to the Intrinsic Module.

Specialized Features:

The following tables list and describe the properties and methods added by ObjectModule. There are no added events.


Properties Use to...


CanUnload Indicate whether or not the module can be unloaded. (Read Only)

DisplayName Show the Display Name of the module. (Read Only)

DynamicCount Indicate the number of dynamic objects in the module. (Read Only)

EvalRequires Determine the number of objects in the module that must be able to evaluate an operation called on the module.

FileName The file associated with the module. (Read Only)

IsCurrent Indicate whether the module is the current module. (Read Only)

IsModified Indicate whether or not the module has been modifed. (Read Only)

IsText Indicate whether or not the module is in text format. (Read Only)

IsUntitled Indicate whether or not the module is Untitled. (Read Only)

ReadOnly Provide a boolean that indicates whether changes to the module can be saved. (Read Only)

Selector Assign selectors at module load time, selectors are unique throughout the session. (Read Only)

StaticCount Indicate the number of static objects in the module. (Read Only)

UntitledSerialNum Indicate the number associated with the module if it is untitled. (Read Only)

Version Display the version number of your Phoenix and Phoenixs parts. (Read Only)


Methods Use to...


Compact Decrease the disk space used by ObjectModule to the minimum necessary.

DynamicObject Return the i'th dynamic in the module.

GetDynamicObjects Put a Group of Dynamic objects into the module.

GetPrototypeObjects Put a Group of Prototype objects into the module

GetStaticObjects Put a Group of Static objects into the module.

Save Save the module to file and commit changes.

SaveAs Save the module to a specific text file or binary file.

StaticObject Return the i'th static in the module.

Unload Remove the module (and all objects in it) from the current session. It does not save the module.

Copied Features:

Noneimages/Phx00010.gifthis is a top-level object.

Details:

There is one module, which is always present, that contains objects that are never stored to disk. This module is known as the volatile module, or alternately the intrinsic module (since it contains the intrinsic objects). All other modules have a disk image, which contains the state of the objects in that module as of the last committed save.

ObjectModules can be read only, or writable. The volatile module is always writable. Objects that belong to read-only modules can still be modified by changing properties, but those changes will not be written to the module storage. No new objects can be created in or moved to a read-only module.

The ModuleManager object maintains a list of currently loaded modules. New modules are loaded by invoking methods of the ModuleManager, not by copying ObjectModule. When the ModuleManager loads a module, it makes a dynamic copy of ObjectModule to store in its module list. See the
ModuleManager documentation for more detailed information.