Callbacks


Callbacks When Sending Apple Events

AEFilterProcPtr Defines a pointer to a function the Apple Event Manager calls while your application waits for a reply to an Apple event. Your filter function determines which high-level events your application is willing to handle.
AEIdleProcPtr Defines a pointer to a function the Apple Event Manager calls while your application waits for a reply to an Apple event. Your idle function must handle update, null, operating-system, and activate events.

Coercing Apple Event Data Callbacks

AECoerceDescProcPtr Defines a pointer to a function that coerces data stored in a descriptor record. Your descriptor coercion callback function coerces the data from the passed descriptor record to the specified type, returning the coerced data in a second descriptor record.
AECoercePtrProcPtr Defines a pointer to a function that coerces data stored in a buffer. Your pointer coercion callback routine coerces the data from the passed buffer to the specified type, returning the coerced data in a descriptor record.

Handling Apple Events Callbacks

AEEventHandlerProcPtr Defines a pointer to a function that handles one or more Apple events. Your Apple event handler function performs any action requested by the Apple event, adds parameters to the reply Apple event if appropriate, and returns a result code.

Object Accessor Callbacks

OSLAccessorProcPtr Your object accessor function either finds elements or properties of an Apple event object.

Object Callback Functions

OSLAdjustMarksProcPtr Defines a pointer to a mark adjusting object callback function. Your mark adjusting function adjusts the marks made with the current mark token.
OSLCompareProcPtr Defines a pointer to an object comparison callback function. Your object comparison function compares one Apple event object to another or to the data for a descriptor record.
OSLCountProcPtr Defines a pointer to an object counting callback function. Your object counting function counts the number of Apple event objects of a specified class in a specified container object.
OSLDisposeTokenProcPtr Defines a pointer to a dispose token callback function. Your dispose token function, required only if you use a complex token format, disposes of the specified token.
OSLGetErrDescProcPtr Defines a pointer to an error descriptor callback function. Your error descriptor callback function supplies a pointer to an address where the Apple Event Manager can store the current descriptor record if an error occurs during a call to the AEResolve function.
OSLGetMarkTokenProcPtr Defines a pointer to a mark token callback function. Your mark token function returns a mark token.
OSLMarkProcPtr Defines a pointer to an object marking callback function. Your object-marking function marks a specific Apple event object.

© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)