Bookmark | Home |About Us |Shopping Cart

Search by any keyword or phrase
in item name or description


Cocoa(R) Programming for Mac(R) OS X (3rd Edition)

Average Customer Rating: 4.5
Release Date: 2008-05-15
Publisher:Addison-Wesley Professional
Author Aaron Hillegass
Number of pages:464
ISBN:0321503619
Language:Original Language: English; Unknown: English; Published: English;

Product Categories

Product description

 

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.

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).

Customer reviews


« Definitive.. start »
The perfect kick-start. Does exactly what it says on the lid. I read it twice the first time without a screen in front of me and it gives a great overview of the fundamentals. Would give 6 stars if I could.
Rating: (5 out of 5) @ 2008-12-08
« Great Book, even better Class »
This book is by-far the best book for learning Cocoa Programming and understanding why you doing what you are. The book is based on Aaron's years of working with and teaching Cocoa programming at NeXT, Apple and his company Big Nerd Ranch. Aaron keep's the book moving with small logically laid out chapters and leave out the superfluous B.S. that so many other authors insist on writing for days on. In my opinion Aaron's book isn't really intended for people with no object-oriented programming experience but if you have a decent amount of experience in a HL language such as C or Pascal you shouldn't have much of a problem picking up on the concepts. I would suggest reading an object-c book prior to working with this book only because object-c's syntax and library leaves some people scratching their heads. The only thing better than reading this book is taking Aarons 5 or 7 day Cocoa Boot camps from his company Big Nerd Ranch ( www.bignerdranch.com ). Both the book and the boot camps are money well spent.
Rating: (5 out of 5) @ 2008-11-22
« C# ASP.NET Developer Learning XCode »
I currently am a Web App Developer who uses C# and Visual Studio. I have been using macs forever and wanted to learn how to code for the iPhone and figured this is the best place to start learning Objective-C. This book is very good at explaining Objective-C and how to write code for it. I am at the eighth chapter and already am writing my own code. I downloaded the examples in the book and the way I approach it is, read the chapter, copy the example code (not from the clipboard!) then read the chapter again. The book has a bunch of great examples and is fun to do. I look forward to writing native mac apps!
Rating: (5 out of 5) @ 2008-10-18
« The Cocoa Bible »
This book is amazing. It covers everything you need to know, in depth, very easy to read and understand, and very quick to digest. It is THE Cocoa Bible.
Rating: (5 out of 5) @ 2008-10-14
« OS X developer must have »
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.
Rating: (5 out of 5) @ 2008-10-06
Quantity:
List Price: $49.99
Our Price: $26.48 (Save $23.51)
Availability: Usually ships in 1-2 business days


Featured Auctions

4d Olive KGV CoA w m - Selection of 10
4d Olive KGV CoA w m - Selection of 10
Price :
8.94 USD
Ends in :
4m 26s
5d Brown KGV  CoA w m - Selection of 20
5d Brown KGV CoA w m - Selection of 20
Price :
5.56 USD
Ends in :
8m 19s
2d  OS  o p Red KGV  CoA w m - Selection of 20
2d OS o p Red KGV CoA w m - Selection of 20
Price :
1.59 USD
Ends in :
10m 12s
POLISH STAMP SELECTION
POLISH STAMP SELECTION
Price :
0.99 USD
Ends in :
11m 32s
1d Green KGV Mixed w m - Selection of 100
1d Green KGV Mixed w m - Selection of 100
Price :
5.62 USD
Ends in :
11m 50s
 d Orange KGV small multi w m - Selection of 20
d Orange KGV small multi w m - Selection of 20
Price :
7.94 USD
Ends in :
14m 42s
1 d Red KGV small multi w m - Selection of 100
1 d Red KGV small multi w m - Selection of 100
Price :
7.89 USD
Ends in :
19m 3s
INDIA STAMP SELECTION
INDIA STAMP SELECTION
Price :
0.99 USD
Ends in :
20m 40s