Important: The information in this document is obsolete and should not be used for new development.
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 theAESendfunction, 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
TRUEas the function result if you want to accept the Apple event; otherwise, it should returnFALSE.SEE ALSO
For more information, see "Writing a Reply Filter Function" on page 5-24.