Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
|
Version: 1.0 Posted: 2003-07-22 Build Requirements: N/A Runtime Requirements: Carbon Download Sample (AECoercion.zip, 13.0K) |
||||
DescriptionThis sample illustrates how to install a system level Apple event Manager type coercion handler at system startup time. The Apple Event Manager installs several type coercion handlers for you that will automatically coerce data types stored in Apple events from one type to another as needed. For example, 'odoc' (open document) Apple events contain a list of file system Alias records. If when reading such a list one requests FSSpec records, the Apple Event Manager's alias-to-FSSpec coercion handler is called automatically to convert the aliases from into FSSpec records without the application having to perform any special conversion operations. In this sample, a type coercion handler is installed for coercing pascal style strings into typeChar (ASCII strings). Requires: System 7.0 Keywords: AppleEvent Manager, coercion Document Revision History
|
|