|(2008-05-15) Cocoa(R) Programming for Mac(R) OS X (3rd Edition), Aaron Hillegass|
Returns not accepted
San Jose, CA, USA
|Cocoa Programming for Mac OS X by Aaron Hillegass (2008, Paperback)|
Returns not accepted
Free shippingBuy it now
|The best-selling introduction to Cocoa, once again updated to cover the latest Mac programming technologies, and still enthusiastically recommended by experienced Mac OS X developers. 'Aaron's book is the gold standard for Mac OS X programming books-beautifully written, and thoughtfully sculpted. The best book on Leopard development.' -Scott Stevenson,www.theocacao.com 'This is the first book I'd recommend for anyone wanting to learn Cocoa from scratch. Aaron's one of the few (perhaps only) full-time professional Cocoa instructors, and his teaching experience shows in the book.' -Tim Burks, software developer and creator of the Nu programming language,www.programming.nu 'If you're a UNIX or Windows developer who picked up a Mac OS X machine recently in hopes of developing new apps or porting your apps to Mac users, this book should be strongly considered as one of your essential reference and training tomes.' -Kevin H. Spencer, Apple Certified Technical Coordinator If you're developing applications for Mac OS X, Cocoa Programming for Mac OS X, Third Edition,is the book you've been waiting to get your hands on. If you're new to the Mac environment, it's probably the book you've been told to read first. Covering the bulk of what you need to know to develop full-featured applications for OS X, written in an engaging tutorial style, and thoroughly class-tested to assure clarity and accuracy, it is an invaluable resource for any Mac programmer. Specifically, Aaron Hillegass introduces the three most commonly used Mac developer tools: Xcode, Interface Builder, and Instruments. He also covers the Objective-C language and the major design patterns of Cocoa. Aaron illustrates his explanations with exemplary code, written in the idioms of the Cocoa community, to show you how Mac programs should be written. After reading this book, you will know enough to understand and utilize Apple's online documentation for your own unique needs. And you will know enough to write your own stylish code. Updated for Mac OS X 10.4 and 10.5, this revised edition includes coverage of Xcode 3, Objective-C 2, Core Data, the garbage collector, and CoreAnimation.|
|Number Of Pages||464 pages|
|Publisher||Addison Wesley Professional|
|Group||Scholarly & Professional|
|LC Classification Number||QA76.76.O63H57145|
|Table Of Content|
|Table Of Content||Preface xvii Acknowledgments xix Chapter 1: Cocoa: What Is It? 1 A Little History 1 Tools 3 Language 4 Objects, Classes, Methods, and Messages 4 Frameworks 6 How to Read This Book 6 Typographical Conventions 7 Common Mistakes 7 How to Learn 8 Chapter 2: Let's Get Started 9 In Xcode 9 In Interface Builder 13 Back in Xcode 23 Documentation 29 What Have You Done? 30 Chapter 3: Objective-C 33 Creating and Using Instances 33 Using Existing Classes 35 Creating Your Own Classes 46 The Debugger 58 What Have You Done? 62 For the More Curious: How Does Messaging Work? 62 Challenge 64 Chapter 4: Memory Management 65 Turning the Garbage Collector On and Off 66 Living with the Garbage Collector 68 Living with Retain Counts 68 What Have You Done? 77 Chapter 5: Target/Action 79 Some Commonly Used Subclasses of NSControl 81 Start the SpeakLine Example 85 Lay Out the Nib File 86 Implementing the AppController Class 88 For the More Curious: Setting the Target Programmatically 90 Challenge 90 Debugging Hints 92 Chapter 6: Helper Objects 95 Delegates 96 The NSTableView and Its dataSource 99 Lay Out the User Interface 102 Make Connections 103 Edit AppController.m 105 For the More Curious: How Delegates Work 108 Challenge: Make a Delegate 109 Challenge: Make a Data Source 110 Chapter 7: Key-Value Coding; Key-Value Observing 111 Key-Value Coding 111 Bindings 113 Key-Value Observing 115 Making Keys Observable 116 Properties and Their Attributes 118 For the More Curious: Key Paths 120 For the More Curious: Key-Value Observing 121 Chapter 8: NSArrayController 123 Starting the RaiseMan Application 124 Key-Value Coding and nil 132 Add Sorting 133 For the More Curious: Sorting without NSArrayController 134 Challenge 1 135 Challenge 2 135 Chapter 9: NSUndoManager 139 NSInvocation 139 How the NSUndoManager Works 140 Adding Undo to RaiseMan 142 Key-Value Observing 145 |
Average review score based on 2 user reviews
This is a good book for programmers with a decent knowledge of Objective-C. It is not, however, a book I would recommend for beginners. The author does a great job of walking you through Xcode and the Interface Builder, but he expects you to know Objective-C. The narrative and diagrams make a pretty confusing topic easy to follow and understand. Every time I found the text a bit overwhelming, he had an appropriate screen shot to clear things up.
There is a forum, listed in the book, where readers can go to get help with topics. The author and more experienced readers of the book post to the site to offer help. I also found a great forum at www.cocoacommunity.com that has the code for the challenge problems in the book. Like the author's forum, it has members that will help answer any questions the reader might have.
Overall, I would recommend this book to anyone who wants to learn Cocoa. It is well written and has great example programs.
I bought this book after having the 2nd Ed. and never finding the time to go through it. With the release of Leopard the 2nd Ed. was outdated due to the release of XCode 3 and Interface Builder 3. This book covers all of these new features.
The only drawback I see to this book is that as you start the beginning chapters there are challenges to complete. However I am moving through the RaiseMan application and when you get to further chapters such as covering the Undo Manager it's pretty much just following along with the code you are given. I have had to read a few chapters several times to get the understanding I required.