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 4 - Launching and Terminating an Application


Initializing Additional MacApp Units

If your application uses any MacApp units that are not initialized by DoInitUMacApp, such as MacApp's Drag Manager support or PowerTalk mailer support, you initialize them in your main routine after the call to InitUMacApp, as shown here:

InitUMacApp(4); // Initialize MacApp with 4 calls to MoreMasters.
#if qDrag
   if (HasDragManager())
      InitUDragManager();
#endif
#if qPowerTalk
   if (HasAOCEToolBox())
      InitUMailer();
#endif
The HasDragManager routine is defined in the UDragDrop unit and the HasAOCEToolBox routine is defined in the UMailable unit. These global routines check whether the required feature is available in the current machine configuration.

For information on how to build your application with Drag Manager or PowerTalk support, see Appendix A.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
25 JUL 1996