Buying Options
Learning Cocoa with Objective-C, Second Edition
Print $34.95
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £26.99
Add to Cart
What is this?

Product Editions

  1. Learning Cocoa with Objective-C, Second Edition - September 2002
  2. Learning Cocoa - May 2001
Description
Based on the Jaguar release of Mac OS X 10.2, this 2nd edition of Learning Cocoa includes examples that use the Address Book and Universal Access APIs. Also included 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. This 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.
Full Description
Table of Contents
  1. Cocoa Overview and Foundation

    1. Chapter 1 Introduction to Cocoa

      1. The Mac OS X Programming Environment
      2. Cocoa Defined
      3. The Cocoa Frameworks
      4. Languages
      5. The Foundation Framework
      6. The Application Kit Framework
    2. Chapter 2 Cocoa Development Tools

      1. Installing the Developer Tools
      2. Interface Builder
      3. Other Tools
      4. Exercises
    3. Chapter 3 Object-Oriented Programming with Objective-C

      1. Introducing Objects
      2. Creating and Using Objects
      3. Methods and Messages
      4. Objective-C-Defined Types
      5. Creating New Classes
      6. Overriding Methods
      7. Other Concepts
      8. Exercises
    4. Chapter 4 The Cocoa Foundation Kit

      1. Strings
      2. Collections
      3. Memory Management
      4. Exercises
  2. Single-Window Applications

    1. Chapter 5 Graphical User Interfaces

      1. Graphical User Interfaces in Cocoa
      2. Designing Applications Using MVC
      3. Create the Currency Converter Project
      4. Create the Interface
      5. Define the Classes
      6. Connect the Model, Controller, and View
      7. Implement the Classes
      8. Build and Run
      9. Exercises
    2. Chapter 6 Windows, Views, and Controls

      1. Windows and the Window System
      2. The View Hierarchy
      3. Coordinate Systems
      4. Controls, Cells, and Formatters
      5. Targets and Actions
      6. Exercises
    3. Chapter 7 Custom Views

      1. Custom View Creation Steps
      2. Create a Custom View
      3. Drawing into a View: Behind the Scenes
      4. Draw Strings into a View
      5. Draw Paths into a View
      6. Exercises
    4. Chapter 8 Event Handling

      1. Events
      2. Dot View Application
      3. Event Delegation
      4. Notifications
      5. Exercises
    5. Chapter 9 Models and Data Functionality

      1. Protocols
      2. Key-Value Coding
      3. Table Views
      4. Table View Example
      5. Saving Data: Coding and Archiving
      6. Using Formatters
      7. Sorting Tables
      8. Exercises
  3. Document-Based Applications

    1. Chapter 10 Multiple Document Architecture

      1. Architectural Overview
      2. Building a Document-Based Application
      3. Exercises
    2. Chapter 11 Rich-Text Handling

      1. Cocoa's Text System
      2. Creating a Rich-Text Editor
      3. Enabling the Font Menu
      4. Text Storage and Attributed Text
      5. Enabling the Text Menu
      6. Handling Embedded Images
      7. Exercises
  4. Miscellaneous Topics

    1. Chapter 12 Printing

      1. Printing a View
      2. Using Print Operations
      3. Setting Margins
      4. Exercises
    2. Chapter 13 Bundles and Resources

      1. Peeking Inside Bundles
      2. Using Bundles
      3. Exercises
    3. Chapter 14 Localization

      1. Mac OS X Language Preferences
      2. Localizing Resources
      3. Localizing Nib Files
      4. Localizing Strings
      5. Exercises
    4. Chapter 15 Defaults and Preferences

      1. How Preferences Work
      2. Using Defaults
      3. Command-Line Preferences Access
      4. Using Unique Application Identifiers
      5. Exercises
    5. Chapter 16 Accessory Windows

      1. The Role of File's Owner
      2. Making an Info Window
      3. Exercises
    6. Chapter 17 Finishing Touches

      1. Tidying Up the User Interface
      2. Providing an Icon
      3. Providing Help
      4. Customizing the About Box
      5. Tweaking Compiler Settings
      6. Packaging for Distribution
      7. Closure
      8. Exercises
  5. Appendixes

    1. Appendix A Exercise Solutions

      1. Chapter 2
      2. Chapter 3
      3. Chapter 4
      4. Chapter 5
      5. Chapter 6
      6. Chapter 7
      7. Chapter 8
      8. Chapter 9
      9. Chapter 10
      10. Chapter 11
      11. Chapter 12
      12. Chapter 13
      13. Chapter 14
      14. Chapter 15
      15. Chapter 16
      16. Chapter 17
    2. Appendix B Additional Resources

      1. Documentation on Your Hard Drive
      2. Printed Documentation
      3. Getting Sample Code
      4. Web Sites
      5. Mailing Lists
      6. Partnering with Apple
    3. Appendix C Using the Foundation and Application Kit API References

      1. Cocoa Browser
  1. Colophon

View Full Table of Contents
Product Details
Title:
Learning Cocoa with Objective-C, Second Edition
By:
Apple Computer Inc, James Duncan Davidson
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
September 2002
Pages:
384
Print ISBN:
978-0-596-00301-2
| ISBN 10:
0-596-00301-3
Customer Reviews
About the Authors
  1. Apple Computer Inc

    This book was contributed to by the technical writers, engineers, support specialists, and other professionals at Apple Computer, Inc., who are committed to making Mac OS X a superior platform for innovation, productivity, and enjoyment. These professionals have diligently collected, compiled, and edited the information in this books to ensure that it is a useful resource for Mac OS X developers.
  2. James Duncan Davidson

    James Duncan Davidson is a freelance author, software developer, and consultant focusing on Mac OS X, Java, XML, and open source technologies. He is the author of Learning Cocoa with Objective-C (published by O'Reilly & Associates) and is a frequent contributor to the O'Reilly Network online website as well as publisher of his own website, x180 (http://www.x180.net), where he keeps his popular weblog. Duncan was the creator of Apache Tomcat and Apache Ant and was instrumental in their donation to the Apache Software Foundation by Sun Microsystems . While working at Sun, he authored two versions of the Java Servlet API specification as well as the Java API for XML Processing. Duncan regularly presents at conferences all over the world on topics ranging from open source and collaborative development to programming Java more effectively. He didn't graduate with a Computer Science degree, but sees that as a benefit in helping explain how software works. His educational background is in Architecture (the bricks and mortar kind), the essence of which he applies to every software problem that finds him. He currently resides in San Francisco, California.

    View James Duncan Davidson's full profile page.

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 animal on the cover of Learning Cocoa with Objective-C, Second Edition, is an Irish setter. Bred as a sporting dog in the 19th century, the Irish setter's agility and energy made it a prime companion for pheasant and quail hunters. By the 1890s, the dog's attractive, silky red coat and elegant build boosted its popularity as a show dog. For the past century, breeders have created a larger dog with a longer coat, with deep chestnut red or patches of red and white hair. The dog is also popular as a family dog. Described as loyal, gentle, energetic, and happy, the Irish setter gets along well with children. Some hospitals, nursing homes, and rehabilitation centers also adopt the Irish setter as a therapy dog. Brian Sawyer was the production editor and proofreader for Learning Cocoa with Objective-C, Second Edition. Jeff Holcomb was the copyeditor. Claire Cloutier and Sheryl Avruch provided quality control. Brenda Miller wrote the index.

Emma Colby 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 layout with QuarkXPress 4.1 using Adobe's ITC Garamond font. Robert Romano and Emma Colby designed the quick reference card using Adobe's Myriad Condensed and ITC Garamond fonts.

David Futato designed the interior layout. This book was converted to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is Lucas-Font's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Ann Schirmer and Brian Sawyer.

  • Book cover of Learning Cocoa with Objective-C