Learning Cocoa
![]() | Format: Paperback List Price: $34.95 Our Price: $1.57 Your Save: $ 33.38 ( 96% ) Availability: N/A Average Customer Rating: |

Editorial Reviews:
For Mac developers of all levels, Learning Cocoa provides an approachable guide to creating applications using Objective-C and the programming tools built into the new Mac OS X operating system. This efficiently packaged text will help virtually anyone master basic Mac application development.
Written by the experts at Apple Computer, Inc., this book sets an admirable standard of clarity for a basic programming tutorial. It begins with the fundamentals of object-oriented programming and Objective-C, the default language used for the Mac platform. Much of the book consists of hands-on exercises for creating a variety of simple Mac applications built on the Cocoa application framework (a rich set of classes that make it simple to create software). Learning Cocoa is not just a source of raw source code; rather, its salient feature is a series of step-by-step guides to working with Mac OS X tools like the Interface Builder and the built-in Apple IDE. From a simple "Hello, World" program and a currency converter to a "Travel Advisor" application (with information on three countries) and a "To Do" application, the book provides exercises that show you all the steps for creating software using a variety of tools.
The discussion of the user interface widgets that are available in the Mac OS X is excellent. You will learn how to design interfaces (which are saved to .nib files), and about the Model-View-Controller architecture recommended by Apple for designing reusable and flexible classes. Later in the book, the same classes are reused in a multiple-document version of the Travel Advisor program. Sample code for a custom widget that displays a calendar will show you how to build custom components.
Throughout this book, there's plenty of information on the nuts and bolts of building successful applications for the Mac OS X, especially memory and resource management. There're also plenty of diagrams and background on the architecture of using Cocoa application framework classes together to create software.
Even Mac beginners should benefit from this concise and well-presented text. It will have you writing simple applications fast, while giving you the latest on the classes and tools available on the newest Mac OS X. --Richard Dragan
Topics covered:
- Overview of the Cocoa framework for Mac OS X
- Object-oriented programming tutorial
- Objective-C language quick start
- Mac application development tools (including Project Builder, Interface Builder, and command-line tools)
- A "Hello, World" application in Cocoa
- Fundamental Cocoa classes (including collections and controls)
- Memory and resource management in Cocoa
- A "Currency Converter" application (including basic GUI programming with Cocoa components)
- Event-handling basics
- Using table views and data sources
- Persistence and "flattening" Cocoa objects
- A "Travel Advisor" sample application (including the Model-View-Controller architecture)
- The Cocoa Multiple-Document Architecture
- A "To Do" scheduling application (including a custom calendar component and timers)
- Deployment in Cocoa (application settings, icons, and document types)
- Compiler optimization in Cocoa
- Reference for basic graphics in Cocoa
If you like "Learning Cocoa, you might also like ...

Spotlight customer reviews:
Customer Rating:
Summary: A must have
Comment: This book is filled with little hints and tips and condensed with great material. It reminds me of the Kernighan and Richie's book for C. There's something to learn in each single paragraph.
Customer Rating:
Summary: Bad Dog!
Comment: Dull, dull, dull. Quite literally this is a bunch of documentation you can download from Apple's site bound in a book. Yes, you do learn something, but the ratio of useful information to "type in the program" is awful and it's very dry reading.
Try the Aaron Hillegass book, or the new O'Reilly "Building Cocoa Applications" if you want a useful title on programming Cocoa. I see there's a second edition of this book due in September 2002 - hopefully this'll either pep up the existing content, or add something more (published paper documentation for the Cocoa frameworks is non-existent, probably because some of the on-line documentation I've looked at still has big gaping holes in it - and people wonder why Carbonized apps outnumber those that use Cocoa...)
Customer Rating: ![]()
![]()
![]()
![]()
![]()
Summary: Almost useless
Comment: The first few chapters are useful for learning the basics of Cocoa, but the last half of the book was written with the mistaken philosophy that people learn to code best by typing in lots of huge examples with almost no explanation.
If you want to learn Objective-C and Cocoa (and you already know C), go to Vervante and get "The Objective-C Programming Language" (a print-on-demand book by Apple). Once you've finished with that, you might want to go through the first half of this book - but get a used copy if you can. Or borrow one!
The best book out so far is Aaron Hillegass' "Cocoa Programming for Mac OS X". While it doesn't cover every topic in great depth, it is sufficient to get you started.
From there, stick to Apple's free documentation (included with the developer tools) and searches of the cocoa-dev mailing list (hosted by Apple). Don't bother with O'Reilly's "Building Cocoa Applications," unless you have time and money to burn.
Maybe some good Cocoa books will come out later this year, but for now Aaron's and the Vervante/print-on-demand one are about it.
Customer Rating: ![]()
![]()
![]()
![]()
![]()
Summary: Useful, I suppose
Comment: The Interface Builder (which helps assemble the GUI for a Cocoa application) has changed a bit since this book was written. The palettes have been rearranged, and some of the interface elements are different. For example, the book directs one to click on the "electrical outlet" icon next to the class name. There is no longer such an icon in current versions of IB. Fortunately in all cases where the book no longer matches the tools it has been fairly easy to figure out what to do.
Learning Cocoa is still usable, but is becoming dated.
Customer Rating: ![]()
![]()
![]()
![]()
![]()
Summary: returned my copy
Comment: I am surprised O'REILLY published such a weak book. To keep it short, it is one of those "click here, click there, you are done!" kind of books. I doesn't go much deeper than the Cocoa tutorials on Apple's developer site.
Technical Details
Binding: PaperbackDewey Decimal Number: 005.4
EAN: 9780596001605
ISBN: 0596001606
Label: O'Reilly
Manufacturer: O'Reilly
Number Of Items: 1
Number Of Pages: 382
Publication Date: 2001-05-01
Publisher: O'Reilly
Studio: O'Reilly



