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.
Chapter 1 Introduction to Carbon
Carbon and Mac OS X
What’s in Carbon?
Building Carbon Applications
The Carbon Factory Tour
Recap
Chapter 2 Specifying a Carbon Application: Moon Travel Planner
The Moon Travel Planner Window
The Menu Bar
The About Window
The Facts for the Traveler Window
The Itinerary Window
Recap
Chapter 3 Project Builder Projects
A Carbon Application Project
Moon Travel Planner: Creating a Project
Recap
Chapter 4 Interface Builder: Nibs and Windows
A Carbon Nib File
Moon Travel Planner: Modifying the Default Window
Chapter 5 Interface Builder: Toolsand Controls
Palettes and Layout Tools
Moon Travel Planner: Adding Objectsto the Main Window
Chapter 6 Carbon Events
Carbon Event Handling
MoonTravel Planner: Writing an Event Handler
Chapter 7 Interface Builder: Menus
The Menu Bar
Moon Travel Planner: Modifying the Menu Bar
Chapter 8 Text and Localization
Language-Specific Folders
Moon Travel Planner: Displaying Localized Text
Chapter 9 Printing
The Carbon Printing Manager
Moon Travel Planner: Adding Printing to the Moon Facts Window
Chapter 10 Property Lists
The Information Property List: Info.plist
Moon Travel Planner: Modifying and Using Properties
Chapter 11 Files
Managing Files on the Mac
Moon Travel Planner: Handling Files
Recap
Chapter 12 Providing Help
Help on Mac OS X
Moon Travel Planner: Adding Help
Recap
Chapter 13 Desktop Icons
Icon Basics
Moon Travel Planner: Adding Icons
Recap
Chapter 14 Beyond Moon Travel: Advanced Topics
Scriptable Applications
Threads and Multiprocessing
Tab Controls
Epilogue
Appendix Additional Resources
Building Your Mac OS X Library
Tapping the Carbon Developer Community
Keeping Current
Getting Sample Code
Registering Creator Codes
Partnering with Apple
Appendix Carbon Event Classesand Kinds
Appendix Parameter Names and Typesfor Common Event Kinds
Apple Events
Control Events
Command Events
Menu Events
Mouse Events
Text Input Events
Window Events
Colophon
Title:
Learning Carbon
By:
Apple Computer Inc
Publisher:
O'Reilly Media
Formats:
Print
Safari Books Online
Print:
May 2001
Pages:
360
Print ISBN:
978-0-596-00161-2
| ISBN 10:
0-596-00161-4
Colophon
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animals on the cover of Learning Carbon are bloodhounds. Sarah Jane Shangraw was the production editor and proofreader forLearning Carbon. Paulette Miley was the copyeditor . Catherine Morris and Claire Cloutier provided quality control. Ann Schirmer, Linley Dolby, and Matt Hutchinson worked on interior composition. Joe Wizda wrote the index.
Pam Spremulli designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover mechanical with QuarkXPress 4.1 using Adobe's ITC Garamond font.
Melanie Wang designed the interior layout based on a series design by Nancy Priest. Jason McIntosh converted Learning Carbon into DocBook XML from Apple's native XML format and formatted the book with a program created by Norman Walsh, Lenny Muellner, and Erik Ray. The text and heading fonts are ITC Garamond Light and Garamond Book; the code font is Constant Willison. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6.
It's too outdated. If you're trying to use it to learn Carbon, I can't tell you how it is. I couldn't learn Carbon from this, because none of the codes I wrote (following the book) would compile. It doesn't help that Xcode builds different programs than the ones in the book.
It could have been a good book....if it was up to date.
I'm actually pretty mad. I had really wanted to learn carbon, but how can I if the book I'm trying to learn from might not have correct information. And there's no files online, as the book claimed there would be.
I'm very disappointed.
4/18/2004
4.0
Jam-Packed
By solo
from Undisclosed
Comments about oreilly Learning Carbon:
I enjoyed "Learning Carbon" very much and found that since it was written by Apple Developers, I recieved a lot of inside information that I wouldn't have found elsewhere.
I'm pretty new to the application development world, so it's important to have a text that is a unbiased as possible, so I don't get too far off track. I appreciated this text's format. I felt I was getting the straight dope, but without too much extraneous info.
The book wisely, didn't bog down the student with too many examples, but rather concentrated on one application and showed some of the more widely used implementations.
Before the project began, the authors gave me a fair background of what Carbon is all about by providing the "Carbon Factory Tour."
Apple's IDE was covered, again in what I would term "fair" depth. By that, I mean it's covered enough to give the developer a launching pad to strike out on his own.
I don't think a book in application development is complete without some discussion of design and planning. I was pleased that "Learning Carbon" didn't skip this vital subject.
Lastly, the book provided resources for the developer to take the next step forward in Carbon by providing a suitable Appendix.
The book doesn't claim to be definitive, but it does provide a very reasonable starting point for the Language.
7/1/2002
2.0
Learning Carbon Review
By Josh Gilbert
from Undisclosed
Comments about oreilly Learning Carbon:
I've had a few years of experience with Cocoa and Objective-C (since OS X server 1.0). Recently I needed to perform some very simple tasks in Carbon as Cocoa's counterparts are currently not functional. I've used Cocoa (and it is my Framework of choice) however I needed to implement a few minor Carbon elements into an application. Despite the reviews of other readers I think a few trivial examples would have helped beginners a lot more than the single project. The chapter on event handling could have been much more extensive. It was helpful but not a great way to learn Carbon programming. I've learned more from browsing the Apple provided documentaion (which this book heavily borrows from). And a lack of complete application source code was a nail in the coffin. I mean, great, teach us by bits and pieces and don't show us the entire source for the app. Thankfully I was able to download it from O'Reilly and pick out the bits and pieces I really needed. I didn't want to learn how to write a whole app in Carbon - I wanted to learn how to utilize some features of Carbon for use in Cocoa. Maybe a book on wrapping Carbon with Cocoa or something would have been more along the lines of what I needed but this was about all that was available and sadly it had quite a few shortcomings. It's a great book for just learning Carbon all by itself but for those Cocoa programmers wishing to access features not yet available in Cocoa (which Apple claims is a peer API) the Apple provided docs may be good enough.
3/18/2002
3.0
Learning Carbon Review
By Michael Amorose
from Undisclosed
Comments about oreilly Learning Carbon:
As an 11-year Mac software development veteran, i can recommend this book to people new to Mac programming. While it doesn't cover Carbon comprehensively, it does cover the basics. The focus is to learn Project Builder and Interface Builder, and to get a simple app up and running - there are other books out there that delve into details. I suggest you read this book, then Apple's new Inside Mac OS X series, then possbily Dan Parks Sydow's "MacOS X Programming" which is also a Carbon book, the "Carbon Programming" which is an extensive, in-depth Carbon book. There are a few problems with Learning Carbon such as the fact that Apple has already rev'ed the OS X development tools since this first edition was published. So a few of the things in the examples are a little out of date. But overall you will be able to get up to speed quickly with this book.
10/3/2001
1.0
Learning Carbon Review
By Joey Edelstein
from Undisclosed
Comments about oreilly Learning Carbon:
Not the right place to start learning Mac programming!
While this may be a good book for experienced Mac programmers that want to write code for carbon, it is woefully in adequate for Mac beginners despite its claims otherwise. I am a very experienced Windows programmer starting out the in the Mac world and the book gave me very little to go on. It is missing very basic information like how to create a window with scroll bars or how to create a modal dialog and obtain data from its controls.
8/23/2001
5.0
Learning Carbon Review
By Pat Jensen
from Undisclosed
Comments about oreilly Learning Carbon:
As a UNIX user new to Mac OS X and interested in development, I chose to take the Carbon route. Carbon consists of Apple's time tested APIs that are cross-compatible with OS 9 and OS 10. O'Reilly's Carbon book was excellent and using it and my intermediate C skills, I was able to get my feet wet and start writing Carbon applications.
I did not want to take the object-oriented route and invest time in learning new APIs as well as new language constructs like Cocoa or Java and I found this book to be a great resource. It contains a great Moon Planner tutorial which will help build understanding of the Carbon APIs as well as tutorials on how to use the Mac OS X development tools.
I would suggest new Carbon users also purchase the Mac OS X System Overview book from Apple, as it drills into application installation, frameworks and more. Great book!
6/7/2001
4.0
Learning Carbon Review
By Warren Hardy
from Undisclosed
Comments about oreilly Learning Carbon:
I am very impressed with this book, it is really easy to follow, I have been trying to implement the Moon Travel Planner, there are some minor technical problems with the code.
It would be good for a chapter on the structure of the Project Builder and how it is setup for finding header files etc.
<By far the mt most educational book for getting started with developing on not only the new Mac OS X but also ith Apple in general.
6/1/2001
4.0
Learning Carbon Review
By Noel Fegan
from Undisclosed
Comments about oreilly Learning Carbon:
I have been a Windows developer for many years, and I am new to Mac programming. Yet, I found this book very understandable. The use of the Moon Travel Planner example, and the way in which this same example is carried through the book was a good approach, rather than having lots of unrelated trivial examples.
The only negative comment I have is that I couldn't find any way to provide feedback to the authors. I found a number of small typos and a possible coding mistake (a typical 'goto' gotcha) that I would like to send on to the authors.
Noel
6/1/2001
5.0
Learning Carbon Review
By Noel Fegan
from Undisclosed
Comments about oreilly Learning Carbon:
OK I just found the Errata section, so I retract my earlier comment about not having a place to provide feedback.