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: Programmer's Guide to MacApp / Part 1 - MacApp Theory and Architecture
Chapter 6 - Scripting


User Interaction

When your application supports Apple events, it may act as a server, providing services to a client application or script. The client has the option of setting the interaction level, and it may specify that no user interface items should be displayed. If your application wishes to interact with the user while processing an Apple event, it should call the TApplication method InteractWithUser. This method determines whether user interaction is allowed, based on information obtained from the Apple Event Manager, and returns an appropriate OSErr value:

Your application can call InteractWithUser, then call FailOSErr, passing the returned value. Any error will be handled as described in the following section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
25 JUL 1996