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-07-22

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“AECoercion.zip”, 13.0K)
Download Sample (“AECoercion.dmg”, 72.5K)



Description

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

Document Revision History

Date Notes
2003-07-22First 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.