TEXTtotypeIntlCoercion

Last Revision:
Version 1.0, 2003-01-14
First Version
Build Requirements:
Runtime Requirements:
Carbon

This sample illustrates how to install an application level Apple event Manager type coercion handler. 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. 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 typeChar (ASCII strings) into typeIntlText (international text). Requires: System 7.0 Keywords: AppleEvent Manager, coercion handlers