This book teaches you how to write programs for the Apple Macintosh computer using the Carbon Application Programming Interface (API), the C language, and the Metrowerks CodeWarrior development system. The use of the Carbon API ensures that your programs will run native on both Mac OS 9 and Mac OS X, and take advantage of the advanced features of Mac OS X when run on that system. The book also teaches you how to "carbonize" existing non-Carbon programs so that they will run native on Mac OS X. Carbon Programming provides in-depth coverage of many aspects of Macintosh programming, and includes source code listings and explanatory comments for 27 demonstration programs. The companion Web site contains the ready-to-compile project, source code, and resource files for all demonstration programs. In Carbon Programming you will learn how to: Create and manage all elements of the Mac OS 9 and Mac OS X graphical user interfaces (menus, windows, dialogs, alerts, sheets, controls, lists, help balloons and tags, icons, cursors, and so on); Perform file input/output, and create and manage the associated dialogs and alerts; Implement printing, scrap management, drag and drop, sound and speech, notifications, Apple Help, multiple-monitor support, interapplication communication, Finder support, and so on; Draw text and graphics, format and display dates, times, and numbers, and create basic text-editing applications.