Important: The information in this document is obsolete and should not be used for new development.
MessageGlobalsInitProc
You can create an initialization function that requests and allocates memory for your global data. The initialization function must have a prototype of this form:
typedef void (*MessageGlobalsInitProc) (void *messageGlobals);
messageGlobals
A pointer to the global data to be initialized.DESCRIPTION
You must supply the MessageGlobalsInitProc function if you use theNewMessageGlobalsfunction to allocate memory for your global data. Once this initialization function is installed, QuickDraw GX calls it whenever you use theNewMessageGlobalsfunction.If your programming environment is MPW, you may use the
A5Initfunction that MPW provides to establish an A5 world for your global data:
void A5Init (void *globalPtr);SEE ALSO
TheNewMessageGlobalsfunction is described on page 6-17.For more information on initializing you global data, see the section "Allocating Memory for and Disposing of Global Data" beginning on page 6-8.