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 4 - Responding to Apple Events / Reference to Responding to Apple Events
Routines for Responding to Apple Events / Requesting User Interaction


AESetInteractionAllowed

You can use the AESetInteractionAllowed function to specify your application's user interaction preferences for responding to an Apple event.

FUNCTION AESetInteractionAllowed 
                              (level: AEInteractAllowed): OSErr;
level
The user interaction level to be set.
DESCRIPTION
The AESetInteractionAllowed function sets the user interaction level for a server application's response to an Apple event. The level parameter must be one of three flags: kAEInteractWithSelf, kAEInteractWithLocal, or kAEInteractWithAll.

Specifying the kAEInteractWithSelf flag allows the server application to interact with the user in response to an Apple event only when the client application and server application are the same--that is, only when the application is sending the Apple event to itself.

Specifying the kAEInteractWithLocal flag allows the server application to interact with the user in response to an Apple event only if the client application is on the same computer as the server application; this is the default if the AESetInteractionAllowed function is not used.

Specifying the kAEInteractWithAll flag allows the server application to interact with the user in response to an Apple event sent from any client application on any computer.

RESULT CODE
noErr0No error
SEE ALSO
For more information about setting user preferences for a server application, see "Setting the Server Application's User Interaction Preferences" on page 4-50.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996