Cocoa Programming for Mac OS X |  | Author: Aaron Hillegass Publisher: Addison-Wesley Professional Category: Book
List Price: $44.99 Buy Used: $0.33 as of 9/10/2010 03:52 CDT details You Save: $44.66 (99%)
New (11) Used (34) Collectible (1) from $0.33
Seller: massbookstore Rating: 114 reviews
Media: Paperback Edition: 1st Pages: 416 Number Of Items: 1 Shipping Weight (lbs): 1.9 Dimensions (in): 9.1 x 7.4 x 1.1
ISBN: 0201726831 Dewey Decimal Number: 005.268 UPC: 785342726831 EAN: 9780201726831
Availability: Usually ships in 1-2 business days
| |
| Also Available In:
|
| Similar Items:
| |
| Editorial Reviews:
Amazon.com Review Suitable for anyone with a little C/C++ programming experience who wants to create software for the newest Mac platform, Cocoa Programming for Max OS X provides a slickly packaged and approachable tutorial that will get you started creating state-of-the-art Mac programs. The smart presentation style and easy-to-understood code examples help make this text an excellent resource. (It also helps that Aaron Hillegass is a truly engaging writer.) He first explains how the legacy NeXTSTEP platform has evolved into Cocoa on the Mac OS X. Beginning with short examples illustrating the actual Cocoa tools in action, the author gets you started with simple programs for a random-number generator, a raise calculator, and other comprehensible examples. Rather than just listing APIs and classes, the emphasis is on hands-on Cocoa development. An early standout section provides a nice tour of essential Objective-C features you'll need to know to use Cocoa effectively. This book covers the several dozen built-in Cocoa controls, from basic text and buttons to more advanced widgets (including lists and tables). Subsequent sections look at user interface design (using the Interface Builder to create nib files) and how to add programmatic processing behind the visual layout. Along the way, the author introduces coverage of essential Cocoa APIs for strings, arrays, and dictionaries. Later chapters look at saving and loading documents (and user defaults) and how to tap the powerful graphics abilities available in Cocoa. (Besides image and basic drawing, there are short sections on PDF support and printing.) More advanced user interface features get their due by the end of the book, including cutting and pasting data through the Cocoa pasteboard and also adding drag-and-drop support. Final sections look at creating new controls for use with the Interface Builder palette, and, briefly, how to use Java with Cocoa (an option that the author doesn't necessarily recommend). Throughout this text, the author provides more advanced, challenging problems at the end of each chapter for the "more curious" reader. This approach keeps beginners from getting lost in the details of Cocoa development, but gives the more advanced reader something more to do. While there are comparably fewer books on Mac OS X compared to other platforms, readers are lucky to have this one available. Anyone who wants to get onboard with Cocoa development will be well served by this title. It's a fine tutorial that earns high marks for its approachable, clear examples and an excellent presentation by an author who knows his stuff and, better yet, knows how to teach it to others. --Richard Dragan Topics covered: Brief history of the Mac platform (from NeXTSTEP to Mac OS X), basic Cocoa development in Objective-C, using Project Builder and Interface Builder tools, tutorial to Objective-C (instances, variables, using classes, arrays and other containers, custom classes), the Objective-C debugger, basic Cocoa controls (building user interfaces), tables and data sources, event handling and delegates, archiving documents (encoding and decoding, saving and loading documents), Nib files, window panels, saving and retrieving user defaults (including using dictionary classes), notifications (observers and more on delegates), alert panels, localization (including string tables, a English and French example, the nibtool utility), custom views and drawing, drawing images and mouse events (plus coordinates systems and autoscrolling views), responders and keyboard events, fonts and strings (including attributed strings and PDF support), pasteboards and nil-targeted actions, using Objective-C categories (a code reuse feature), drag-and-drop support, timers, sheets and drawers, formatting strings, printing support, on-the-fly menu updating, text editing with text views, basic tutorial for using Java with Cocoa, and custom Interface Builder palettes (and inspectors).
Product Description The most comprehensive guide to developing Cocoa available. For the developer new to Cocoa, it provides an excellent introduction that will lead to success with the world's best object-oriented development tools. Softcover.
|
| Customer Reviews:
Showing reviews 1-5 of 114
Not Perfect, But Highly Recommended February 23, 2002 HiRez (California, USA) 146 out of 151 found this review helpful
This was the book I had been waiting for, or at least ONE OF the books I had been waiting for, to really get started with Cocoa programming. The O'Reilly book, as has been mentioned plenty of times here, leaves a lot to be desired, and while it was better than nothing, a wall still remained between me and Cocoa after finishing it.After reading Cocoa Programming for OS X, I feel I can say I "get" Cocoa finally. That's not to say I'm an expert, but that I can complete a simple program now, on my own, using the Cocoa frameworks and concepts. As Aaron says in the book, learing the Cocoa APIs will take much longer. I come from a Java background, with only marginal C and C++ experience. Although Aaron does not speak much about the objective-c language itself, that's ok. Apple's PDF is more than adequate to get that background. There are some things that get glossed over that I wish had been more fully explained, and some things left out altogether that I would have liked to see, such as: -- Spawning and managing multiple threads, thread safety issues -- exception handling, debugging and assertions -- Cocoa "primitive" objects (NSPoint, NSRect, NSRange, etc.), why they apparently don't need to be retained or released, and why they are "NS" objects but don't really behave like them. -- Calling Toolbox routines or those from APIs that have not yet been "Cocoa-ized" (and integrating the Old Way into the Cocoa Way), with examples. Cocoa is nice but once you get away from building a text editor, you will need to dig into this ugly and unfriendly world at some point (unfortunately). For instance, how do I access the Airport card, how do I open and use a network socket, how can I read a DV-encoded stream from a FireWirePort and save it to disk as a QuickTime movie, how do I access a database, how do I use an OpenGL view? -- How to customize Cocoa UI elements. Like if I wanted an NSSlider with TWO sliders, a minimum and a maximum. There is an example of subclassing an NSView in the book, but that's just a drawing panel. To be fair, I'm not really criticizing Aaron for these things. The book has plenty of useful stuff, and I'm sure Aaron wants to write and sell more books, so some advanced Cocoa books that address some of these things as well as others will be welcome...I hope someone is writing them right now. I also hope someone is writing a comprehensive Cocoa API reference, as Apple's is somewhat lacking (Have you seen the phrase "Description Forthcoming" more times than you care to remember? I thought so.) The bottom line is that this is a great book that is a must-have for anyone interested in Cocoa programming. I'd probably rate it four or four-and-a-half stars, but I'm giving it five for being there when I needed it, and being the first really useful book on the subject. The best thing I can say about it is that I can now do things there is simply no way I could have before.
Getting started in Cocoa September 16, 2002 charles (Palo Alto, CA, USA) 52 out of 55 found this review helpful
First, I have to say I loved this book, I actually read half of it on a trip, not being in front of my computer, and still enjoyed the clear style and the gradual addition of new concepts and tools, chapter after chapter. Then I could hardly wait to be back home and start doing it for real.Now for the potential buyer. WHAT IT IS NOT: a reference book (no list of classes etc...) or a technical book for advanced programming; a book about Java or Carbon; an introduction to object-oriented programming; an introduction to C. WHAT IT IS: an excellent introduction to programming in Objective C in the Cocoa environment of Max OS X, provided you know enough about object-oriented programming (some basic understanding of C++ is preferable too). WHAT YOU LEARN: Objective-C in Cocoa; using Apple Developer Tools; building an application in Mac OS X; how to make optimal use of Cocoa classes and API, knowing how they were conceived and meant to be used; a number of basic concepts and tips that really get you started. THE PLUS that make this book so interesting: very good and clear writing; some amusing brief 'historical' insights; you really feel the author knows what he is talking about; the author gives personal views (clearly stated as advices, not rules); follow-up, errata, examples, comments, and more on his web site; still completely useable with OS X.2 (a couple or very minor changes that are listed on the web site anyway), so that's the good time to buy it (price is down, but content is still up to date). Final comment: Objective C in Max OS X is very powerful and enjoyable.
OS X developer must have October 6, 2008 Ryan Bemowski (US) 14 out of 14 found this review helpful
If you plan to write for Mac OS X, and have some programming experience, this book is a MUST HAVE. This is by far the best introductory book I have ever read on any language.
If you DO NOT have programming experience, I would still recommend this book. There are some spots where the logic might be hard to grasp, but Aaron Hillegass walks you through it.
In either case, but more so for beginners, I would also recommend Programming in Objective-C (Developer's Library). The less experience you have, the more strongly I would suggest reading this book first. It will walk you through the basics of straight Objective-C and then start you off using frameworks in OS X. If you are a Windows user and do not have a Mac, Programming in Objective-C (Developer's Library) will show you how to write and compile Objective-C in Windows.
(Look for the new version of this book which uses Objective-C 2.0)
I come from Windows development, having programmed in VB 6, VB.NET, C (and variants), and java. Aaron Hillegass takes you right into the heart of the Mac OS X development environment and gives you a guided tour. Showing you the basics of both Cocoa and the X Code development environment. Pick the book up and you won't regret it. This is a walkthrough tutorial style book. It is not a reference book. Apples online documentation is the best reference for Cocoa.
There are a lot of resources out there for Cocoa programmers. If you are looking for more help with Cocoa, check out the free podcasts that are available on iTunes. "CocoaCast" is a 'screen cast' that actually follows this book and may help you if you have trouble. Other podcasts that i find easy to listen to come from the Mac Developer Network such as "Late Night Cocoa" and "The Mac Developer Roundtable". They also have a great community that you can join by visiting www.mac-developer-network.com. They have video classes on some great topics which are very helpful.
Fantastic Cocoa Resource January 14, 2002 auggy (PacNW) 23 out of 26 found this review helpful
Before reading this book, I highly recommend you read the "Object-Oriented Programming and the Objective C Language" document from [...] Forcing myself through the concentrated, dry spec made it easier to understand, enjoy, and appreciate Mr. Hillegass' wonderful explanations.
My favorite aspect of this book is that the author gets you into writing sample apps right away. After the 3rd chapter I felt like I knew the tools and environment well enough to write a very simple Cocoa app (like beginning programming excersize type things). I love how he takes you through the tools and shows you how to use them in the context of writing the sample program. When he explains concepts I feel like he does a very good job of giving concrete examples of when you would use such concepts in code.
The author's writing style felt like he was talking or lecturing to me, but without making me feel like a little kid.
This book is NOT for you if you do NOT have any background in Object-Oriented Programming or if you do NOT have any background in C or C++ (you need to understand pointers and memory management in order to learn ObjC from this reference).
Excellent Introduction October 4, 2002 12 out of 13 found this review helpful
Cocoa Programming for Mac OS X is a GREAT way to learn the basics of programming Mac OS X! I've been a Mac user since 1988, but have always been terrified of programming it. Instead I'd gone the evil route and programmed Delphi for Windows. NO MORE. I'm excited about programming my Macs!THE BAD The title is probably a misnomer, which is causing a lot of the negative feedback here. "Complete Introduction to the Power Of Cocoa" would have been more appropriate. This book isn't any type of reference book. Nor is it a text on programming philosophy. Nor is it a "Learn Objective-C" manual. And it's not a comprehensive "learn everything about Cocoa" book. My positive remarks about these perceived liabilities are in "THE GOOD" paragraphs below. There ARE some typos in the book, but no real errors in the code that I've discovered. In many chapters, you're adding to a program you've built from an earlier chapter. On two or three occasions, variable names in the "new" chapter are different from the "old" chapter. But when doing the build, it became quite obvious and wasn't really much of an impediment -- if you can't follow the program flow and detect the problem by time you reach these chapters, you probably rushed or shouldn't be programming! Still, though, it IS a legitimate "bug" in the book. It's probaby useful that you know something about object-oriented programming. I don't mean knowing C or C++ or Objective-C -- just know a little about object-oriented concepts. Chances are, if you're a modern programmer, you already know enough to make this "bad" point meaningless. If you're a very advanced object-oriented programmer, you may want to FORGET some of what you know to appreciate the pure simplicity of the Objective-C/Cocoa object model! THE GOOD It's an in-depth introduction to programming Cocoa in Objective-C. It will get you excited. It will spark your imagination as you work through the example code. You will want to learn Cocoa and forget everything else. If you know programming in general, you probably DON'T need to know C or C++ or even Objective-C prior to working with this book. I came to it with an Object Pascal background with no working knowledge of C. If you can THINK then you can pick up Objective-C as you work through the book. It's REALLY very simple, even in comparison to Object Pascal. The book is very well supported on the website. There's even a page-search function with errata and user-feedback in case you get in trouble. I've used it for help with a couple of the chapter "challenges." RECOMMENDATIIONS Buy this book, and work through it, and try the challenges. You'll often HAVE TO work through the Cocoa documentation to do the challenges, but this is good because you'll need to learn how to use the documentation to do any serious work. When you're done with the book, you'll be confident and thrilled, and be ready to buy a true reference book (which I'm just getting ready to do!).
Showing reviews 1-5 of 114
|
|
|
|