AECoercion

Last Revision:
Version 1.0, 2003-07-22
First Version
Build Requirements:
Runtime Requirements:
Carbon

This 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