toolbox.tex 5.19 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
\chapter{MacOS Toolbox Modules \label{toolbox}}

There are a set of modules that provide interfaces to various MacOS
toolboxes.  If applicable the module will define a number of Python
objects for the various structures declared by the toolbox, and
operations will be implemented as methods of the object.  Other
operations will be implemented as functions in the module.  Not all
operations possible in C will also be possible in Python (callbacks
are often a problem), and parameters will occasionally be different in
Python (input and output buffers, especially).  All methods and
functions have a \member{__doc__} string describing their arguments
and return values, and for additional description you are referred to
\citetitle[http://developer.apple.com/techpubs/macos8/mac8.html]{Inside
Macintosh} or similar works.

16 17 18
These modules all live in a package called \module{Carbon}. Despite that name
they are not all part of the Carbon framework: CF is really in the CoreFoundation
framework and Qt is in the QuickTime framework.
19 20 21 22 23
The normal use pattern is

\begin{verbatim}
from Carbon import AE
\end{verbatim}
24 25 26 27 28 29 30 31 32 33 34

\strong{Warning!}  These modules are not yet documented.  If you
wish to contribute documentation of any of these modules, please get
in touch with \email{python-docs@python.org}.

\localmoduletable


%\section{Argument Handling for Toolbox Modules}


35 36
\section{\module{Carbon.AE} --- Apple Events}
\declaremodule{standard}{Carbon.AE}
37
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
38
\modulesynopsis{Interface to the Apple Events toolbox.}
39

40 41 42 43 44
\section{\module{Carbon.AH} --- Apple Help}
\declaremodule{standard}{Carbon.AH}
  \platform{Mac}
\modulesynopsis{Interface to the Apple Help manager.}

45

46 47 48
\section{\module{Carbon.App} --- Appearance Manager}
\declaremodule{standard}{Carbon.App}
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
49
\modulesynopsis{Interface to the Appearance Manager.}
50 51 52 53 54


\section{\module{Carbon.CF} --- Core Foundation}
\declaremodule{standard}{Carbon.CF}
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
55
\modulesynopsis{Interface to the Core Foundation.}
56

57
The
58 59 60 61
\code{CFBase}, \code{CFArray}, \code{CFData}, \code{CFDictionary},
\code{CFString} and \code{CFURL} objects are supported, some
only partially.

62 63 64 65 66 67 68 69 70 71
\section{\module{Carbon.CG} --- Core Graphics}
\declaremodule{standard}{Carbon.CG}
  \platform{Mac}
\modulesynopsis{Interface to the Component Manager.}

\section{\module{Carbon.CarbonEvt} --- Carbon Event Manager}
\declaremodule{standard}{Carbon.CaronEvt}
  \platform{Mac}
\modulesynopsis{Interface to the Carbon Event Manager.}

72 73
\section{\module{Carbon.Cm} --- Component Manager}
\declaremodule{standard}{Carbon.Cm}
74
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
75
\modulesynopsis{Interface to the Component Manager.}
76 77


78 79
\section{\module{Carbon.Ctl} --- Control Manager}
\declaremodule{standard}{Carbon.Ctl}
80
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
81
\modulesynopsis{Interface to the Control Manager.}
82 83


84 85
\section{\module{Carbon.Dlg} --- Dialog Manager}
\declaremodule{standard}{Carbon.Dlg}
86
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
87
\modulesynopsis{Interface to the Dialog Manager.}
88 89


90 91
\section{\module{Carbon.Evt} --- Event Manager}
\declaremodule{standard}{Carbon.Evt}
92
  \platform{Mac}
93
\modulesynopsis{Interface to the classic Event Manager.}
94 95


96 97
\section{\module{Carbon.Fm} --- Font Manager}
\declaremodule{standard}{Carbon.Fm}
98
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
99
\modulesynopsis{Interface to the Font Manager.}
100

101 102 103 104 105
\section{\module{Carbon.Folder} --- Folder Manager}
\declaremodule{standard}{Carbon.Folder}
  \platform{Mac}
\modulesynopsis{Interface to the Folder Manager.}

106

107 108 109
\section{\module{Carbon.Help} --- Help Manager}
\declaremodule{standard}{Carbon.Help}
  \platform{Mac}
110
\modulesynopsis{Interface to the Carbon Help Manager.}
111 112 113

\section{\module{Carbon.List} --- List Manager}
\declaremodule{standard}{Carbon.List}
114
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
115
\modulesynopsis{Interface to the List Manager.}
116 117


118 119
\section{\module{Carbon.Menu} --- Menu Manager}
\declaremodule{standard}{Carbon.Menu}
120
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
121
\modulesynopsis{Interface to the Menu Manager.}
122 123


124 125 126
\section{\module{Carbon.Mlte} --- MultiLingual Text Editor}
\declaremodule{standard}{Carbon.Mlte}
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
127
\modulesynopsis{Interface to the MultiLingual Text Editor.}
128 129 130 131


\section{\module{Carbon.Qd} --- QuickDraw}
\declaremodule{builtin}{Carbon.Qd}
132
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
133
\modulesynopsis{Interface to the QuickDraw toolbox.}
134 135


136 137 138
\section{\module{Carbon.Qdoffs} --- QuickDraw Offscreen}
\declaremodule{builtin}{Carbon.Qdoffs}
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
139
\modulesynopsis{Interface to the QuickDraw Offscreen APIs.}
140 141 142 143


\section{\module{Carbon.Qt} --- QuickTime}
\declaremodule{standard}{Carbon.Qt}
144
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
145
\modulesynopsis{Interface to the QuickTime toolbox.}
146 147


148 149
\section{\module{Carbon.Res} --- Resource Manager and Handles}
\declaremodule{standard}{Carbon.Res}
150
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
151
\modulesynopsis{Interface to the Resource Manager and Handles.}
152

153 154 155 156
\section{\module{Carbon.Scrap} --- Scrap Manager}
\declaremodule{standard}{Carbon.Scrap}
  \platform{Mac}
\modulesynopsis{Interface to the Carbon Scrap Manager.}
157

158 159
\section{\module{Carbon.Snd} --- Sound Manager}
\declaremodule{standard}{Carbon.Snd}
160
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
161
\modulesynopsis{Interface to the Sound Manager.}
162 163


164 165
\section{\module{Carbon.TE} --- TextEdit}
\declaremodule{standard}{Carbon.TE}
166
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
167
\modulesynopsis{Interface to TextEdit.}
168 169


170 171
\section{\module{Carbon.Win} --- Window Manager}
\declaremodule{standard}{Carbon.Win}
172
  \platform{Mac}
Fred Drake's avatar
Fred Drake committed
173
\modulesynopsis{Interface to the Window Manager.}