Important: The information in this document is obsolete and should not be used for new development.
Application-Defined Routines
For each Apple event your application supports, you must provide an Apple event handler. TheAEProcessAppleEvent
function calls one of your Apple event handlers when it processes an Apple event. An Apple event handler (MyEventHandler
) should perform any action described by the Apple event, add parameters to the reply Apple event if appropriate, and return a result code.You can also provide your own coercion handlers to coerce data to descriptor types other than those for which the Apple Event Manager provides coercion handling. The
MyCoercePtr
function accepts a pointer to data and returns a descriptor record, and theMyCoerceDesc
function accepts a descriptor record and returns a descriptor record.