Important: The information in this document is obsolete and should not be used for new development.
MyUserGraphicsWarning
You can use theMyUserGraphicsWarningfunction to provide an application-defined warning handler for your application.
void MyUserGraphicsWarning(gxGraphicsWarning warning, long reference);
warning- The QuickDraw GX warning being passed to the handler.
reference- A
longvalue passed each time that a warning occurs. This value can be used by the warning handler for any purpose.DESCRIPTION
TheMyUserGraphicsWarningfunction is called with the warning number posted by the defective function. TheMyUserGraphicsWarningfunction can evaluate the warning and respond in any appropriate manner.The warning handler is enabled and disabled by the use of the
GXSetUserGraphicsWarningfunction. If its parameter is set tonil, the warning handler is disabled. If its parameter is notnil, the warning handler is enabled and all warnings detected by QuickDraw GX are passed to the warning handler for processing and possible response.The
GXGetUserGraphicsWarningfunction returns the currently installed application-defined warning handler.SEE ALSO
The use of this function is described in the section "Installing an Error, Warning, or Notice Handler" on page 3-38.Warnings that may be sent to the warning handler are listed in the section "Warnings" beginning on page 3-10.
The
GXSetUserGraphicsWarningfunction is described on page 3-60.The
GXGetUserGraphicsWarningfunction is described on page 3-61.