| Mac-Carbon documentation | view source | Contained in the Mac-Carbon distribution. |
Mac::Types - Macintosh Toolbox Types and conversions.
Access to Inside Macintosh is essential for proper use of these functions. Explanations of terms, processes and procedures are provided there. Any attempt to use these functions without guidance can cause severe errors in your machine, including corruption of data. You have been warned.
Convert a perl value into a Mac toolbox type. Predefined codes are:
Text (an identity operation).
A 4-byte string.
A boolean.
A short integer.
A long integer.
A single precision float.
A double precision float.
An unsigned long.
A QuickDraw Rect.
A pascal style string.
A string list.
A file specification record.
You can pass further code mappings as hash references.
Convert a Mac toolbox type into a perl value. Predefined codes are as for
MacPack. You can pass further code mappings as hash references.
Written by Matthias Ulrich Neeracher <neeracher@mac.com>. Currently maintained by Chris Nandor <pudge@pobox.com>.
| Mac-Carbon documentation | view source | Contained in the Mac-Carbon distribution. |