Legacy Documentclose button

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-01-14

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“TEXTtotypeIntlCoercion.zip”, 2.5K)
Download Sample (“TEXTtotypeIntlCoercion.dmg”, 59.7K)



Description

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

Document Revision History

Date Notes
2003-01-14First Version

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.