Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Interapplication Communication /
Chapter 5 - Creating and Sending Apple Events / Reference to Creating and Sending Apple Events
Application-Defined Routines /


MyReplyFilter

A reply filter function has the following syntax:

FUNCTION MyReplyFilter (VAR event: EventRecord;
                        returnID: LongInt; 
                        transactionID: LongInt;
                        sender: AEAddressDesc): Boolean;
event
The event record for a high-level event. The next three parameters contain valid information only if the event is an Apple event.
returnID
Return ID for the Apple event.
transactionID
Transaction ID for the Apple event.
sender
Address of process that sent the Apple event.
DESCRIPTION
If your application provides a pointer to a reply filter function as a parameter to the AESend function, the reply filter function can process any high-level events that it is willing to handle while your application is waiting for a reply.

Your reply filter function should return TRUE as the function result if you want to accept the Apple event; otherwise, it should return FALSE.

SEE ALSO
For more information, see "Writing a Reply Filter Function" on page 5-24.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996