O'Reilly logo

Learning Carbon by Apple Computer Inc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What’s Up Ahead

This book is designed as a tutorial. Each chapter builds upon the previous one. You should start at the beginning and proceed sequentially. Chapters are designed so you can stop at the end of each one, then pick up with the next at a later time.

This book will take you, step by step, through the design and building of a simple Carbon application (Moon Travel Planner). After finishing this book, you should be comfortable enough with basic Carbon concepts and the workings of Project Builder and Interface Builder to start writing your own Carbon applications.

The topics in upcoming chapters are as follows:

  • Chapter 1 provides an overview of Carbon, Mac OS X, and the Carbon programming interfaces and tells what’s involved in building a Carbon application.

  • Chapter 2 discusses the process of specifying a simple application, Moon Travel Planner, and its user interface.

  • Chapter 3 introduces Project Builder and describes how to build a minimalist application (essentially the prototypical “Hello World” application without the “Hello World” part). It also introduces the concept of bundles and application packaging.

  • Chapter 4 introduces Interface Builder and shows how to use it to create a simple window.

  • Chapter 5 expands on Chapter 4, letting you add buttons and other controls to the simple window.

  • Chapter 6 introduces the Carbon event-handling model and shows you how to create a basic event handler.

  • Chapter 7 shows you how to use Interface Builder to create menus for your application.

  • Chapter 8 shows you how to organize a project to support localization and how to handle text that is displayed in a window.

  • Chapter 9 introduces the basics of printing in Carbon and shows you how to print a window containing text.

  • Chapter 10 introduces property lists, which are a generic way to store information needed by your application. It also describes how to design and implement an About window so that it displays information from a property list.

  • Chapter 11 shows you how to store and retrieve data in a file.

  • Chapter 12 describes help facilities, namely help books and help tags, available to your application and shows how to implement them.

  • Chapter 13 shows how to create an icon for your application and how to identify your application (and any files it creates) to the Finder application.

  • Chapter 14 describes some additional features that may be useful for your applications.

  • Appendix A provides information on Carbon-related resources and where to find them. If a book or document is mentioned in a chapter, you’ll find out how to get it here.

  • Appendix B describes the event constants you’ll need when you create an application that uses the Carbon Event Manager.

  • Appendix C provides a detailed set of tables that list constants you’ll need to retrieve parameter values associated with Carbon events.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required