blob: eb31ce143c1455530990c931f1133648e7ae2dad [file] [log] [blame]
Fred Drake4d0d6212000-10-14 05:08:34 +00001\chapter{MacOS Toolbox Modules \label{toolbox}}
2
3There are a set of modules that provide interfaces to various MacOS
4toolboxes. If applicable the module will define a number of Python
5objects for the various structures declared by the toolbox, and
6operations will be implemented as methods of the object. Other
7operations will be implemented as functions in the module. Not all
8operations possible in C will also be possible in Python (callbacks
9are often a problem), and parameters will occasionally be different in
10Python (input and output buffers, especially). All methods and
11functions have a \member{__doc__} string describing their arguments
12and return values, and for additional description you are referred to
13\citetitle[http://developer.apple.com/techpubs/macos8/mac8.html]{Inside
14Macintosh} or similar works.
15
Jack Jansen95fefc72001-09-11 21:25:10 +000016These modules all live in a package called \module{Carbon}. Despite the
17name Carbon they are also available under classic PPC MacPython.
18The normal use pattern is
19
20\begin{verbatim}
21from Carbon import AE
22\end{verbatim}
Fred Drake4d0d6212000-10-14 05:08:34 +000023
24\strong{Warning!} These modules are not yet documented. If you
25wish to contribute documentation of any of these modules, please get
26in touch with \email{python-docs@python.org}.
27
28\localmoduletable
29
30
31%\section{Argument Handling for Toolbox Modules}
32
33
Jack Jansen95fefc72001-09-11 21:25:10 +000034\section{\module{Carbon.AE} --- Apple Events}
35\declaremodule{standard}{Carbon.AE}
Fred Drake4d0d6212000-10-14 05:08:34 +000036 \platform{Mac}
37\modulesynopsis{Interface to the Apple Events toolbox}
38
39
Jack Jansen95fefc72001-09-11 21:25:10 +000040\section{\module{Carbon.App} --- Appearance Manager}
41\declaremodule{standard}{Carbon.App}
42 \platform{Mac}
43\modulesynopsis{Interface to the Appearance Manager}
44
45
46\section{\module{Carbon.CF} --- Core Foundation}
47\declaremodule{standard}{Carbon.CF}
48 \platform{Mac}
49\modulesynopsis{Interface to the Core Foundation}
50
51This module is only available under Carbon MacPython. The
52\code{CFBase}, \code{CFArray}, \code{CFData}, \code{CFDictionary},
53\code{CFString} and \code{CFURL} objects are supported, some
54only partially.
55
56\section{\module{Carbon.Cm} --- Component Manager}
57\declaremodule{standard}{Carbon.Cm}
Fred Drake0c4d4682001-04-13 17:37:00 +000058 \platform{Mac}
Fred Drake4d0d6212000-10-14 05:08:34 +000059\modulesynopsis{Interface to the Component Manager}
60
61
Jack Jansen95fefc72001-09-11 21:25:10 +000062\section{\module{Carbon.Ctl} --- Control Manager}
63\declaremodule{standard}{Carbon.Ctl}
Fred Drake4d0d6212000-10-14 05:08:34 +000064 \platform{Mac}
65\modulesynopsis{Interface to the Control Manager}
66
67
Jack Jansen95fefc72001-09-11 21:25:10 +000068\section{\module{Carbon.Dlg} --- Dialog Manager}
69\declaremodule{standard}{Carbon.Dlg}
Fred Drake4d0d6212000-10-14 05:08:34 +000070 \platform{Mac}
71\modulesynopsis{Interface to the Dialog Manager}
72
73
Jack Jansen95fefc72001-09-11 21:25:10 +000074\section{\module{Carbon.Evt} --- Event Manager}
75\declaremodule{standard}{Carbon.Evt}
Fred Drake4d0d6212000-10-14 05:08:34 +000076 \platform{Mac}
77\modulesynopsis{Interface to the Event Manager}
78
79
Jack Jansen95fefc72001-09-11 21:25:10 +000080\section{\module{Carbon.Fm} --- Font Manager}
81\declaremodule{standard}{Carbon.Fm}
Fred Drake4d0d6212000-10-14 05:08:34 +000082 \platform{Mac}
83\modulesynopsis{Interface to the Font Manager}
84
85
Jack Jansen95fefc72001-09-11 21:25:10 +000086\section{\module{Carbon.Help} --- Help Manager}
87\declaremodule{standard}{Carbon.Help}
88 \platform{Mac}
89\modulesynopsis{Interface to the Balloon Help Manager}
90
91This module is only available under MacOS9 and earlier in
92classic PPC MacPython.
93
94\section{\module{Carbon.List} --- List Manager}
95\declaremodule{standard}{Carbon.List}
Fred Drake4d0d6212000-10-14 05:08:34 +000096 \platform{Mac}
97\modulesynopsis{Interface to the List Manager}
98
99
Jack Jansen95fefc72001-09-11 21:25:10 +0000100\section{\module{Carbon.Menu} --- Menu Manager}
101\declaremodule{standard}{Carbon.Menu}
Fred Drake4d0d6212000-10-14 05:08:34 +0000102 \platform{Mac}
103\modulesynopsis{Interface to the Menu Manager}
104
105
Jack Jansen95fefc72001-09-11 21:25:10 +0000106\section{\module{Carbon.Mlte} --- MultiLingual Text Editor}
107\declaremodule{standard}{Carbon.Mlte}
108 \platform{Mac}
109\modulesynopsis{Interface to the MultiLingual Text Editor}
110
111
112\section{\module{Carbon.Qd} --- QuickDraw}
113\declaremodule{builtin}{Carbon.Qd}
Fred Drake4d0d6212000-10-14 05:08:34 +0000114 \platform{Mac}
115\modulesynopsis{Interface to the QuickDraw toolbox}
116
117
Jack Jansen95fefc72001-09-11 21:25:10 +0000118\section{\module{Carbon.Qdoffs} --- QuickDraw Offscreen}
119\declaremodule{builtin}{Carbon.Qdoffs}
120 \platform{Mac}
121\modulesynopsis{Interface to the QuickDraw Offscreen APIs}
122
123
124\section{\module{Carbon.Qt} --- QuickTime}
125\declaremodule{standard}{Carbon.Qt}
Fred Drake4d0d6212000-10-14 05:08:34 +0000126 \platform{Mac}
127\modulesynopsis{Interface to the QuickTime toolbox}
128
129
Jack Jansen95fefc72001-09-11 21:25:10 +0000130\section{\module{Carbon.Res} --- Resource Manager and Handles}
131\declaremodule{standard}{Carbon.Res}
Fred Drake4d0d6212000-10-14 05:08:34 +0000132 \platform{Mac}
133\modulesynopsis{Interface to the Resource Manager and Handles}
134
135
Jack Jansen95fefc72001-09-11 21:25:10 +0000136\section{\module{Carbon.Scrap} --- Scrap Manager}
137\declaremodule{standard}{Carbon.Scrap}
Fred Drake4d0d6212000-10-14 05:08:34 +0000138 \platform{Mac}
Fred Drake986bada2001-05-10 22:37:38 +0000139\modulesynopsis{The Scrap Manager provides basic services for
140 implementing cut \&\ paste and clipboard operations.}
141
Jack Jansen95fefc72001-09-11 21:25:10 +0000142This module is only fully available on MacOS9 and earlier under classic PPC
143MacPython. Very limited functionality is available under Carbon MacPython.
144
Fred Drake986bada2001-05-10 22:37:38 +0000145\begin{seealso}
146 \seetitle[http://developer.apple.com/techpubs/mac/MoreToolbox/MoreToolbox-109.html]{Scrap
147 Manager}{Apple's documentation for the Scrap Manager gives
148 a lot of useful information about using the Scrap Manager
149 in applications.}
150\end{seealso}
Fred Drake4d0d6212000-10-14 05:08:34 +0000151
152
Jack Jansen95fefc72001-09-11 21:25:10 +0000153\section{\module{Carbon.Snd} --- Sound Manager}
154\declaremodule{standard}{Carbon.Snd}
Fred Drake4d0d6212000-10-14 05:08:34 +0000155 \platform{Mac}
156\modulesynopsis{Interface to the Sound Manager }
157
158
Jack Jansen95fefc72001-09-11 21:25:10 +0000159\section{\module{Carbon.TE} --- TextEdit}
160\declaremodule{standard}{Carbon.TE}
Fred Drake4d0d6212000-10-14 05:08:34 +0000161 \platform{Mac}
162\modulesynopsis{Interface to TextEdit}
163
164
Jack Jansen95fefc72001-09-11 21:25:10 +0000165\section{\module{Carbon.Win} --- Window Manager}
166\declaremodule{standard}{Carbon.Win}
Fred Drake4d0d6212000-10-14 05:08:34 +0000167 \platform{Mac}
168\modulesynopsis{Interface to the Window Manager}