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. TheAEProcessAppleEventfunction 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
MyCoercePtrfunction accepts a pointer to data and returns a descriptor record, and theMyCoerceDescfunction accepts a descriptor record and returns a descriptor record.