Learning Cocoa with Objective-C, 2/e

James Duncan Davidson, Inc. Apple Computer

  • 出版商: O'Reilly
  • 出版日期: 2002-09-30
  • 售價: $1,550
  • 貴賓價: 9.5$1,473
  • 語言: 英文
  • 頁數: 358
  • 裝訂: Paperback
  • ISBN: 0596003013
  • ISBN-13: 9780596003012
  • 相關分類: Apple Developer
  • 已絕版

買這商品的人也買了...

商品描述

Learning Cocoa with Objective-C is the "must-have" book for people who want to develop applications for Mac OS X, and is the only book approved and reviewed by Apple engineers. Based on the Jaguar release of Mac OS X 10.2, this new edition of Learning Cocoa covers the latest updates to the Cocoa frameworks, including examples that use the Address Book and Universal Access APIs. Also included with this edition is a handy quick reference card, charting Cocoa's Foundation and AppKit frameworks, along with an Appendix that includes a listing of resources essential to any Cocoa developer--beginning or advanced.

Completely revised and updated, this new edition begins with some simple examples to familiarize you with the basic elements of Cocoa programming as well Apple's Developer Tools, including Project Builder and Interface Builder.

After introducing you to Project Builder and Interface Builder, it brings you quickly up to speed on the concepts of object-oriented programming with Objective-C, the language of choice for building Cocoa applications. From there, each chapter presents a different sample program for you to build, with easy to follow, step-by-step instructions to teach you the fundamentals of Cocoa programming. The techniques you will learn in each chapter lay the foundation for more advanced techniques and concepts presented in later chapters.

You'll learn how to:

  • Effectively use Apple's suite of Developer Tools, including Project Builder and Interface Builder
  • Build single- and multiple-window document-based applications
  • Manipulate text data using Cocoa?s text handling capabilities
  • Draw with Cocoa
  • Add scripting functionality to your applications
  • Localize your application for multiple language support
  • Polish off your application by adding an icon for use in the Dock, provide Help, and package your program for distribution


Each chapter ends with a series of Examples, challenging you to test your newly-learned skills by tweaking the application you've just built, or to go back to an earlier example and add to it some new functionality. Solutions are provided in the Appendix, but you're encouraged to learn by trying.

Extensive programming experience is not required to complete the examples in the book, though experience with the C programming language will be helpful. If you are familiar with an object-oriented programming language such as Java or Smalltalk, you will rapidly come up to speed with the Objective-C language. Otherwise, basic object-oriented and language concepts are covered where needed.

Table of Contents

Preface

Part I. Cocoa Overview and Foundation

1. Introduction to Cocoa

2. Cocoa Development Tools

3. Object-Oriented Programming with Objective-C

4. The Cocoa Foundation Kit

Part II. Single-Window Applications

5. Graphical User Interfaces

6. Windows, Views, and Controls

7. Custom Views

8. Event Handling

9. Models and Data Functionality

Part III. Document-Based Applications

10. Multiple Document Architecture

11. Rich-Text Handling

Part IV. Miscellaneous Topics

12. Printing

13. Bundles and Resources

14. Localization

15. Defaults and Preferences

16. Accessory Windows

17. Finishing Touches

Part V. Appendixes

A. Exercise Solutions

B. Additional Resources

C. Using the Foundation and Application Kit API References

Index