User's Guide
The following methods enable applications to perform actions at run
time. They are executed when the system performs a number of system
events.
- exiting
- This method should be added by any application that must execute code
before the image is exited. The default behavior for all applications
is to do nothing.
- localize
- This message is sent during the image startup sequence immediately after
preStartUp, but before the system is initialized and the
configuration file read. This ensures that an application's
strings are properly localized early in the event that problems occur during
the start up sequence, or in the event that they are required when
startUp is sent to the application.
- preStartUp
- This method should be added to any application that must execute code
after the image is loaded, but before any of the applications in the image are
started up. Code written in this method can be used to perform any work
that must be performed only before the standard startUp messages
are sent. This code must not depend on any other applications in the
system (including the file and window systems). This method is rarely
needed; normally all start up code goes in the startUp
method.
- relocalize
- This message is sent during the image startup sequence, and at other times
also, to allow an application to react to a change of locale. This
message is sent immediately after startUp. This method
should ensure an application's strings are properly localized to the
current locale.
- restart
- This method should be added by applications that run code after an image
is restarted, which occurs when the image is saved. For example, any
working files used by the system should be opened in this method.
- saving
- This method should be added by applications that run code before an image
is saved. The default behavior for all applications is to do
nothing.
- shutDown
- This method should be added by applications that run code before an image
is shut down, which is necessary to exit to a shell or to save the
image. Operations normally done in the shutDown method
include closing open files, and restoring the current directory to the
directory that contains the image.
- startUp
- This method should be added by applications that run code after an image
is loaded. Code written in this method can initialize the image to a
clean state before a user is given control.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]