Important: The information in this document is obsolete and should not be used for new development.
|
|
Log In | Not a Member? |
Contact ADC |
AESetTheCurrentEvent
You can use theAESetTheCurrentEventfunction to specify the Apple event to be handled.
FUNCTION AESetTheCurrentEvent (theAppleEvent: AppleEvent): OSErr;
theAppleEvent- The Apple event to be handled.
DESCRIPTION
There is usually no reason for your application to use theAESetTheCurrentEventfunction. Instead of calling this function, your application should let the Apple Event Manager set the current Apple event through the dispatch tables.If you need to avoid the dispatch tables, you must use the
AESetTheCurrentEventfunction only in the following way:
- Your application suspends handling of an Apple event by calling the
AESuspendTheCurrentEventfunction.- Your application calls the
AESetTheCurrentEventfunction. This informs the Apple Event Manager that your application is handling the suspended Apple event. In this way, any routines that call theAEGetTheCurrentEventfunction can ascertain which event is currently being handled.- When your application finishes handling the Apple event, it calls the
AEResumeTheCurrentEventfunction with the valuekAENoDispatchto tell the Apple Event Manager that the event has been processed and need not be dispatched.
RESULT CODE
noErr 0 No error
Get information on Apple products.
Visit the Apple Store online or at retail locations. 1-800-MY-APPLE Copyright © 2007 Apple Inc. All rights reserved. | Terms of use | Privacy Notice |