| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | \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. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | These modules all live in a package called \module{Carbon}. Despite the | 
					
						
							|  |  |  | name Carbon they are also available under classic PPC MacPython. | 
					
						
							|  |  |  | The normal use pattern is | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \begin{verbatim} | 
					
						
							|  |  |  | from Carbon import AE | 
					
						
							|  |  |  | \end{verbatim} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \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}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.AE} --- Apple Events} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.AE} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the Apple Events toolbox.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.App} --- Appearance Manager} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.App} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the Appearance Manager.} | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \section{\module{Carbon.CF} --- Core Foundation} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.CF} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the Core Foundation.} | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | This module is only available under Carbon MacPython. The | 
					
						
							|  |  |  | \code{CFBase}, \code{CFArray}, \code{CFData}, \code{CFDictionary}, | 
					
						
							|  |  |  | \code{CFString} and \code{CFURL} objects are supported, some | 
					
						
							|  |  |  | only partially. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \section{\module{Carbon.Cm} --- Component Manager} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.Cm} | 
					
						
							| 
									
										
										
										
											2001-04-13 17:37:00 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the Component Manager.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.Ctl} --- Control Manager} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.Ctl} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the Control Manager.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.Dlg} --- Dialog Manager} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.Dlg} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the Dialog Manager.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.Evt} --- Event Manager} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.Evt} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the Event Manager.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.Fm} --- Font Manager} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.Fm} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the Font Manager.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.Help} --- Help Manager} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.Help} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the Balloon Help Manager.} | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | This module is only available under MacOS9 and earlier in | 
					
						
							|  |  |  | classic PPC MacPython. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \section{\module{Carbon.List} --- List Manager} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.List} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the List Manager.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.Menu} --- Menu Manager} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.Menu} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the Menu Manager.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.Mlte} --- MultiLingual Text Editor} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.Mlte} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the MultiLingual Text Editor.} | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \section{\module{Carbon.Qd} --- QuickDraw} | 
					
						
							|  |  |  | \declaremodule{builtin}{Carbon.Qd} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the QuickDraw toolbox.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.Qdoffs} --- QuickDraw Offscreen} | 
					
						
							|  |  |  | \declaremodule{builtin}{Carbon.Qdoffs} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the QuickDraw Offscreen APIs.} | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \section{\module{Carbon.Qt} --- QuickTime} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.Qt} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the QuickTime toolbox.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.Res} --- Resource Manager and Handles} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.Res} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the Resource Manager and Handles.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-03-08 03:15:49 +00:00
										 |  |  | \input{libscrap} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.Snd} --- Sound Manager} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.Snd} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the Sound Manager.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.TE} --- TextEdit} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.TE} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to TextEdit.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:25:10 +00:00
										 |  |  | \section{\module{Carbon.Win} --- Window Manager} | 
					
						
							|  |  |  | \declaremodule{standard}{Carbon.Win} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to the Window Manager.} |