home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / Developer Documentation / Recipes, Tech Notes & Articles / Tech Notes / Utilities Documentation / ODDesUtl < prev    next >
Encoding:
Text File  |  1995-11-06  |  1.2 KB  |  24 lines  |  [TEXT/ttxt]

  1. OpenDocâ„¢ Utilities Documentation
  2.  
  3.  
  4. ODDesc utils
  5. 10/31/95
  6.  
  7. © 1993-1995  Apple Computer, Inc. All Rights Reserved.
  8. Apple, the Apple logo, and Macintosh are registered trademarks of Apple Computer, Inc.
  9. Mac and OpenDoc are trademarks of Apple Computer, Inc. 
  10.  
  11. Introduction
  12.  
  13. The ODDesc utilities are simple routines that convert between AEDescs and ODDescs. They simply copy the descriptor type and the raw bytes back and forth. Some care is taken to make sure that the Apple event manager doesn't try to interpret the raw data when we call AECreateDesc.
  14.  
  15. Routines
  16.  
  17. ODError ODDescToAEDesc(ODDesc* odDesc, AEDesc* aeDesc);
  18.  
  19. Creates an AEDesc from an existing ODDesc. If the ODDesc is unintialized (has been allocated but never manipulated), a NULL AEDesc will be created, that is, with descriptor type of NULL and and a null data handle.
  20.  
  21. ODError AEDescToODDesc(AEDesc* aeDesc, ODDesc* odDesc);
  22.  
  23. Replaces any data in the existing ODDesc with the data from the AEDesc. Note that you must pass an existing ODDesc. To allocate a new empty ODDesc, make the following calls: ODDesc* myODDesc = new ODDesc; myODDesc->Initialize(); If the AEDesc is a NULL AEDesc, that is with descriptor type of NULL and and a null data handle, the ODDesc will be emptied of data.
  24.