home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-11-25 | 1.9 KB | 44 lines | [ttro/ttxt] |
- Object Support Library
- ====================
-
- The Object support library is unchanged from version 1.0. The files
- AEObjects.h
- AEObjects.p
- AEPackObject.h
- AEPackObject.p
- AEObjectSupportLib.o
- Have been placed into the Interfaces and Libraries folders under Development
- Tools.
-
- Previously Undocumented feature note:
-
- Since the Developer note on the Object Support Library was written,
- we have added a new feature that we hope developers will find useful.
- The code implementing AEResolve has been modified so that it can
- pass you the descriptor that was responsible for an error when one
- occurs.
-
- To use this feature, you pass the address of a routine with the
- following interface as the last parameter to AESetObjectCallbacks:
-
- FUNCTION MyGetErrDescProc( VAR errDescPtr: DescPtr ) : OSErr ;
-
- The library will call this routine once shortly after you call
- AEResolve, and will write a null descriptor to the address your
- routine returns. If an error occurs during the resolution of the
- object specifier, the library will call your routine again and
- write the descriptor -- often an object specifier -- it was working
- on when the error occurred to the address your routine returns.
-
- Normally you will want to maintain a single global variable of type
- AEDesc whose address your MyGetErrDesc routine returns no matter how
- many times it is called. Be careful if you follow any other model:
- when recovering from an error, the library will never write to the
- address you provide unless it contains a null descriptor. Thus you
- will need to write null descriptors into any addresses you pass that
- are different from the address you returned the first time your
- routine was called after a given call to AEResolve.
-
- Like the rest of the non-accessor callbacks, your GetErrDesc proc can
- also be installed and removed using the Apple Event Manager's
- SpecialHandler routines. Use the keyword keyAEGetErrDescProc.