ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



Types(3)                             User Contributed Perl Documentation                            Types(3)



NAME
       Mac::Types - Macintosh Toolbox Types and conversions.

DESCRIPTION
       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.

       Functions


       MacPack [ CONVERTERS ...] CODE, DATA ...
           Convert a perl value into a Mac toolbox type. Predefined codes are:

           TEXT
               Text (an identity operation).

           enum
           type
           keyw
               A 4-byte string.

           bool
               A boolean.

           shor
               A short integer.

           long
               A long integer.

           sing
               A single precision float.

           doub
               A double precision float.

           magn
               An unsigned long.

           qdrt
               A QuickDraw "Rect".

           'STR '
               A pascal style string.

           'STR#'
               A string list.

           'fss '
               A file specification record.

           You can pass further code mappings as hash references.

       MacUnpack [ CONVERTERS ...] CODE, DATA
           Convert a Mac toolbox type into a perl value. Predefined codes are as for "MacPack". You can pass
           further code mappings as hash references.

       XS Functions


       Debugger [ MSG ]
           Break into MacsBug. Don't use this if you don't know what MacsBug is.

AUTHOR
       Written by Matthias Ulrich Neeracher <neeracher@mac.com>.  Currently maintained by Chris Nandor
       <pudge@pobox.com>.



perl v5.8.8                                      2007-09-23                                         Types(3)

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.