8 There are a set of modules that provide interfaces to various Mac OS toolboxes.
9 If applicable the module will define a number of Python objects for the various
10 structures declared by the toolbox, and operations will be implemented as
11 methods of the object. Other operations will be implemented as functions in the
12 module. Not all operations possible in C will also be possible in Python
13 (callbacks are often a problem), and parameters will occasionally be different
14 in Python (input and output buffers, especially). All methods and functions
15 have a :attr:`__doc__` string describing their arguments and return values, and
16 for additional description you are referred to `Inside Macintosh
17 <http://developer.apple.com/documentation/macos8/mac8.html>`_ or similar works.
19 These modules all live in a package called :mod:`Carbon`. Despite that name they
20 are not all part of the Carbon framework: CF is really in the CoreFoundation
21 framework and Qt is in the QuickTime framework. The normal use pattern is ::
27 The Carbon modules are removed in 3.0.
30 :mod:`Carbon.AE` --- Apple Events
31 =================================
35 :synopsis: Interface to the Apple Events toolbox.
40 :mod:`Carbon.AH` --- Apple Help
41 ===============================
45 :synopsis: Interface to the Apple Help manager.
50 :mod:`Carbon.App` --- Appearance Manager
51 ========================================
53 .. module:: Carbon.App
55 :synopsis: Interface to the Appearance Manager.
58 :mod:`Carbon.Appearance` --- Appearance Manager constants
59 =========================================================
61 .. module:: Carbon.Appearance
63 :synopsis: Constant definitions for the interface to the Appearance Manager.
68 :mod:`Carbon.CF` --- Core Foundation
69 ====================================
73 :synopsis: Interface to the Core Foundation.
77 The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
78 ``CFURL`` objects are supported, some only partially.
81 :mod:`Carbon.CG` --- Core Graphics
82 ==================================
86 :synopsis: Interface to Core Graphics.
91 :mod:`Carbon.CarbonEvt` --- Carbon Event Manager
92 ================================================
94 .. module:: Carbon.CarbonEvt
96 :synopsis: Interface to the Carbon Event Manager.
99 :mod:`Carbon.CarbonEvents` --- Carbon Event Manager constants
100 =============================================================
102 .. module:: Carbon.CarbonEvents
104 :synopsis: Constants for the interface to the Carbon Event Manager.
109 :mod:`Carbon.Cm` --- Component Manager
110 ======================================
112 .. module:: Carbon.Cm
114 :synopsis: Interface to the Component Manager.
117 :mod:`Carbon.Components` --- Component Manager constants
118 ========================================================
120 .. module:: Carbon.Components
122 :synopsis: Constants for the interface to the Component Manager.
126 :mod:`Carbon.ControlAccessor` --- Control Manager accssors
127 ===========================================================
129 .. module:: Carbon.ControlAccessor
131 :synopsis: Accessor functions for the interface to the Control Manager.
134 :mod:`Carbon.Controls` --- Control Manager constants
135 ====================================================
137 .. module:: Carbon.Controls
139 :synopsis: Constants for the interface to the Control Manager.
142 :mod:`Carbon.CoreFounation` --- CoreFounation constants
143 =======================================================
145 .. module:: Carbon.CoreFounation
147 :synopsis: Constants for the interface to CoreFoundation.
150 :mod:`Carbon.CoreGraphics` --- CoreGraphics constants
151 =======================================================
153 .. module:: Carbon.CoreGraphics
155 :synopsis: Constants for the interface to CoreGraphics.
158 :mod:`Carbon.Ctl` --- Control Manager
159 =====================================
161 .. module:: Carbon.Ctl
163 :synopsis: Interface to the Control Manager.
166 :mod:`Carbon.Dialogs` --- Dialog Manager constants
167 ==================================================
169 .. module:: Carbon.Dialogs
171 :synopsis: Constants for the interface to the Dialog Manager.
174 :mod:`Carbon.Dlg` --- Dialog Manager
175 ====================================
177 .. module:: Carbon.Dlg
179 :synopsis: Interface to the Dialog Manager.
182 :mod:`Carbon.Drag` --- Drag and Drop Manager
183 =============================================
185 .. module:: Carbon.Drag
187 :synopsis: Interface to the Drag and Drop Manager.
190 :mod:`Carbon.Dragconst` --- Drag and Drop Manager constants
191 ===========================================================
193 .. module:: Carbon.Dragconst
195 :synopsis: Constants for the interface to the Drag and Drop Manager.
198 :mod:`Carbon.Events` --- Event Manager constants
199 ================================================
201 .. module:: Carbon.Events
203 :synopsis: Constants for the interface to the classic Event Manager.
206 :mod:`Carbon.Evt` --- Event Manager
207 ===================================
209 .. module:: Carbon.Evt
211 :synopsis: Interface to the classic Event Manager.
214 :mod:`Carbon.File` --- File Manager
215 ===================================
217 .. module:: Carbon.File
219 :synopsis: Interface to the File Manager.
222 :mod:`Carbon.Files` --- File Manager constants
223 ==============================================
225 .. module:: Carbon.Files
227 :synopsis: Constants for the interface to the File Manager.
231 :mod:`Carbon.Fm` --- Font Manager
232 =================================
234 .. module:: Carbon.Fm
236 :synopsis: Interface to the Font Manager.
241 :mod:`Carbon.Folder` --- Folder Manager
242 =======================================
244 .. module:: Carbon.Folder
246 :synopsis: Interface to the Folder Manager.
249 :mod:`Carbon.Folders` --- Folder Manager constants
250 ==================================================
252 .. module:: Carbon.Folders
254 :synopsis: Constants for the interface to the Folder Manager.
258 :mod:`Carbon.Fonts` --- Font Manager constants
259 ==================================================
261 .. module:: Carbon.Fonts
263 :synopsis: Constants for the interface to the Font Manager.
268 :mod:`Carbon.Help` --- Help Manager
269 ===================================
271 .. module:: Carbon.Help
273 :synopsis: Interface to the Carbon Help Manager.
276 :mod:`Carbon.IBCarbon` --- Carbon InterfaceBuilder
277 ==================================================
279 .. module:: Carbon.IBCarbon
281 :synopsis: Interface to the Carbon InterfaceBuilder support libraries.
284 :mod:`Carbon.IBCarbonRuntime` --- Carbon InterfaceBuilder constants
285 ===================================================================
287 .. module:: Carbon.IBCarbonRuntime
289 :synopsis: Constants for the interface to the Carbon InterfaceBuilder support libraries.
292 :mod:`Carbon.Icn` --- Carbon Icon Manager
293 =========================================
295 .. module:: Carbon.Icns
297 :synopsis: Interface to the Carbon Icon Manager
300 :mod:`Carbon.Icons` --- Carbon Icon Manager constants
301 =====================================================
303 .. module:: Carbon.Icons
305 :synopsis: Constants for the interface to the Carbon Icon Manager
308 :mod:`Carbon.Launch` --- Carbon Launch Services
309 ===============================================
311 .. module:: Carbon.Launch
313 :synopsis: Interface to the Carbon Launch Services.
316 :mod:`Carbon.LaunchServices` --- Carbon Launch Services constants
317 =================================================================
319 .. module:: Carbon.LaunchServices
321 :synopsis: Constants for the interface to the Carbon Launch Services.
325 :mod:`Carbon.List` --- List Manager
326 ===================================
328 .. module:: Carbon.List
330 :synopsis: Interface to the List Manager.
335 :mod:`Carbon.Lists` --- List Manager constants
336 ==============================================
338 .. module:: Carbon.Lists
340 :synopsis: Constants for the interface to the List Manager.
343 :mod:`Carbon.MacHelp` --- Help Manager constants
344 ================================================
346 .. module:: Carbon.MacHelp
348 :synopsis: Constants for the interface to the Carbon Help Manager.
351 :mod:`Carbon.MediaDescr` --- Parsers and generators for Quicktime Media descriptors
352 ===================================================================================
354 .. module:: Carbon.MediaDescr
356 :synopsis: Parsers and generators for Quicktime Media descriptors
360 :mod:`Carbon.Menu` --- Menu Manager
361 ===================================
363 .. module:: Carbon.Menu
365 :synopsis: Interface to the Menu Manager.
368 :mod:`Carbon.Menus` --- Menu Manager constants
369 ==============================================
371 .. module:: Carbon.Menus
373 :synopsis: Constants for the interface to the Menu Manager.
377 :mod:`Carbon.Mlte` --- MultiLingual Text Editor
378 ===============================================
380 .. module:: Carbon.Mlte
382 :synopsis: Interface to the MultiLingual Text Editor.
385 :mod:`Carbon.OSA` --- Carbon OSA Interface
386 ==========================================
388 .. module:: Carbon.OSA
390 :synopsis: Interface to the Carbon OSA Library.
393 :mod:`Carbon.OSAconst` --- Carbon OSA Interface constants
394 =========================================================
396 .. module:: Carbon.OSAconst
398 :synopsis: Constants for the interface to the Carbon OSA Library.
401 :mod:`Carbon.QDOffscreen` --- QuickDraw Offscreen constants
402 ===========================================================
404 .. module:: Carbon.QDOffscreen
406 :synopsis: Constants for the interface to the QuickDraw Offscreen APIs.
410 :mod:`Carbon.Qd` --- QuickDraw
411 ==============================
413 .. module:: Carbon.Qd
415 :synopsis: Interface to the QuickDraw toolbox.
420 :mod:`Carbon.Qdoffs` --- QuickDraw Offscreen
421 ============================================
423 .. module:: Carbon.Qdoffs
425 :synopsis: Interface to the QuickDraw Offscreen APIs.
430 :mod:`Carbon.Qt` --- QuickTime
431 ==============================
433 .. module:: Carbon.Qt
435 :synopsis: Interface to the QuickTime toolbox.
438 :mod:`Carbon.QuickDraw` --- QuickDraw constants
439 ===============================================
441 .. module:: Carbon.QuickDraw
443 :synopsis: Constants for the interface to the QuickDraw toolbox.
446 :mod:`Carbon.QuickTime` --- QuickTime constants
447 ===============================================
449 .. module:: Carbon.QuickTime
451 :synopsis: Constants for the interface to the QuickTime toolbox.
455 :mod:`Carbon.Res` --- Resource Manager and Handles
456 ==================================================
458 .. module:: Carbon.Res
460 :synopsis: Interface to the Resource Manager and Handles.
463 :mod:`Carbon.Resources` --- Resource Manager and Handles constants
464 ==================================================================
466 .. module:: Carbon.Resources
468 :synopsis: Constants for the interface to the Resource Manager and Handles.
472 :mod:`Carbon.Scrap` --- Scrap Manager
473 =====================================
475 .. module:: Carbon.Scrap
477 :synopsis: The Scrap Manager provides basic services for implementing cut & paste and
478 clipboard operations.
482 This module is only fully available on Mac OS 9 and earlier under classic PPC
483 MacPython. Very limited functionality is available under Carbon MacPython.
485 .. index:: single: Scrap Manager
487 The Scrap Manager supports the simplest form of cut & paste operations on the
488 Macintosh. It can be use for both inter- and intra-application clipboard
491 The :mod:`Scrap` module provides low-level access to the functions of the Scrap
492 Manager. It contains the following functions:
495 .. function:: InfoScrap()
497 Return current information about the scrap. The information is encoded as a
498 tuple containing the fields ``(size, handle, count, state, path)``.
500 +----------+---------------------------------------------+
502 +==========+=============================================+
503 | *size* | Size of the scrap in bytes. |
504 +----------+---------------------------------------------+
505 | *handle* | Resource object representing the scrap. |
506 +----------+---------------------------------------------+
507 | *count* | Serial number of the scrap contents. |
508 +----------+---------------------------------------------+
509 | *state* | Integer; positive if in memory, ``0`` if on |
510 | | disk, negative if uninitialized. |
511 +----------+---------------------------------------------+
512 | *path* | Filename of the scrap when stored on disk. |
513 +----------+---------------------------------------------+
518 `Scrap Manager <http://developer.apple.com/documentation/mac/MoreToolbox/MoreToolbox-109.html>`_
519 Apple's documentation for the Scrap Manager gives a lot of useful information
520 about using the Scrap Manager in applications.
524 :mod:`Carbon.Snd` --- Sound Manager
525 ===================================
527 .. module:: Carbon.Snd
529 :synopsis: Interface to the Sound Manager.
532 :mod:`Carbon.Sound` --- Sound Manager constants
533 ===============================================
535 .. module:: Carbon.Sound
537 :synopsis: Constants for the interface to the Sound Manager.
541 :mod:`Carbon.TE` --- TextEdit
542 =============================
544 .. module:: Carbon.TE
546 :synopsis: Interface to TextEdit.
549 :mod:`Carbon.TextEdit` --- TextEdit constants
550 =============================================
552 .. module:: Carbon.TextEdit
554 :synopsis: Constants for the interface to TextEdit.
559 :mod:`Carbon.Win` --- Window Manager
560 ====================================
562 .. module:: Carbon.Win
564 :synopsis: Interface to the Window Manager.
567 :mod:`Carbon.Windows` --- Window Manager constants
568 ==================================================
570 .. module:: Carbon.Windows
572 :synopsis: Constants for the interface to the Window Manager.