Book description
Learning Carbon is designed to get you programming right away in Carbon™, one of two APIs (Application Programmer Interfaces) Macintosh® programmers can use to write applications that run native in Mac® OS X. Using Carbon, you don't have to rewrite your Mac OS programs entirely to get them to take advantage of the new features in Mac OS X. Instead, all you have to rewrite is the 10 to 20 percent of the code that can't be translated to OS X. For C programmers, Apple's Carbon is the essential building block for applications on Mac OS X. With Carbon, you can use simple, traditional C interfaces to create world-class applications for a world-class operating system. After orienting you with a detailed tour of a Carbon application, Learning Carbon walks you through the entire process of designing and creating a complete Carbon application called Moon Travel Planner. Along the way, you'll be introduced to two pivotal development tools: Project Builder and Interface Builder. You'll learn key concepts about Carbon and Mac OS X programming, including event management, resource handling, and bundle anatomy. And you'll get direct, hands-on instruction on how to implement essential application tasks, such as managing windows, printing documents, opening and saving files, creating and responding to menu commands, providing user help, and organizing your application for easy localization in multiple countries and languages. After finishing this book, you'll be ready to start writing your own Carbon applications. Written by Apple insiders with access to engineers deeply involved in creating Mac OS X, Learning Carbon brings you information that's not available anywhere else, to get you in on the ground floor of the exciting new Mac OS X application development market.
Table of contents
-
Learning Carbon
- Preface
- 1. Introduction to Carbon
- 2. Specifying a Carbon Application: Moon Travel Planner
- 3. Project Builder Projects
- 4. Interface Builder: Nibs and Windows
- 5. Interface Builder: Toolsand Controls
- 6. Carbon Events
- 7. Interface Builder: Menus
-
8. Text and Localization
- Language-Specific Folders
- Moon Travel Planner: Displaying Localized Text
-
9. Printing
- The Carbon Printing Manager
-
Moon Travel Planner: Adding Printing to the Moon Facts Window
- Define Constants for Working with Printing
- Define Data Types for Working with Printing
- Define Prototypes for Printing Functions
- Write Printing Functions
- Add a Print Format String to the Localized Strings
- Add Printing Code to the Main Function
- Adjust Code in the Moon FactsWindow Event Handler
- Test the Page Setup and Print Commands
- Recap
- 10. Property Lists
-
11. Files
- Managing Files on the Mac
- Moon Travel Planner: Handling Files
- Recap
- 12. Providing Help
- 13. Desktop Icons
- 14. Beyond Moon Travel: Advanced Topics
- A. Additional Resources
- B. Carbon Event Classesand Kinds
- C. Parameter Names and Typesfor Common Event Kinds
- Index
- Colophon
Product information
- Title: Learning Carbon
- Author(s):
- Release date: May 2001
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596001612
You might also like
book
Cocoa Programming for OS X: The Big Nerd Ranch Guide
Covering the bulk of what you need to know to develop full-featured applications for OS X, …
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …
book
Mac OSX Developer's Guide
Mac OS X, Apple's newest operating system for the Macintosh platform, is profoundly different from its …
audiobook
The Year in Tech, 2025
<B>A year of HBR's essential thinking on tech—all in one place.</B><br/><br/><br/><br/>Generative AI, biometrics, spatial computing, electric …