Slashdot Mirror


Cocoa in a Nutshell

emmastory writes "The Nutshell series includes some of the most well-worn and useful technical books I own, and Cocoa in a Nutshell is one of the newer Mac-related additions to the collection. If you're familiar with the format of the series, probably the biggest question you'll have is whether or not this book is as good as the other Nutshell handbooks - the short answer is Yes, it's just as good as its predecessors." Read on to see the logic underlying that conclusion, in the rest of Emma's review. Cocoa in a Nutshell author Michael Beam, James Duncan Davidson pages 545 publisher O'Reilly rating 8 reviewer Emma Story ISBN 0596004621 summary A good overview of the language and API reference.

Cocoa is a great thing to learn, and if you've got some relevant experience with other languages, this book is a great way to learn it. It's one of the Apple Developer Connection recommended O'Reilly titles, and comprises a complete and thorough reference to the language that most Cocoa developers will appreciate.

I say most Cocoa developers rather than all of them because this is of course a Nutshell handbook - it's not intended to serve as a step-by-step tutorial for those without any prior Cocoa or object-oriented programming experience (for that, there's Learning Cocoa with Objective-C). Readers completely unfamiliar with the language may find the book a little bewildering, it's true. However, that's not to say you need to have already mastered the language before picking up the Nutshell book - the first part contains quite a decent introduction, and if you're already familiar with something like Java, this will probably be all you need. I have a couple of years of experience with C and Java myself, and although this was my first Cocoa book, I didn't feel lost when reading the book's first half.

Coauthor Michael Beam notes that "The 'In a Nutshell' format had always been a very efficient means of communicating information, particularly for more experienced developers. Cocoa is a very verbose and wordy API; that is, the method names are long and can have many arguments. It is often the case that a developer can be moving along in his code, and he knows what method to use, but can't remember the precise syntax. This book seeks to provide a quick way to look up that syntax." I think that's a goal it achieves admirably, and as long as readers are aware they're buying a reference and not a gentle introduction to programming, they won't be disappointed.

It's primarily the second half of the book that serves as a complement to Apple's documentation for the Foundation and AppKit classes. Apple's Cocoa site is better than it used to be, and it does include a basic API Reference along the line's of Sun's site for the Java API - you can use it for the kind of syntax-checking Beam is talking about, and many developers do just that. If you're already in the habit of looking things up on the Apple site, the API documentation in this book won't change your life. I prefer it to the web version, partially because there's slightly more explanation of the various classes, but not everyone will feel the same way.

So, who should buy this book? The intended audience is pretty much the same as that of the other programming-related Nutshell books. If you're completely new to programming, don't bother. You'll be much better off starting with something that assumes no knowledge of programming concepts and skills. On the other hand, if you're an experienced Cocoa developer who'd rather use Apple's Cocoa site than shell out for a book, there's really no reason to do so. But plenty of people don't fall into either of these categories. If you've got some OOP experience, and especially if you've already fumbled your way through a little bit of Cocoa but would like to learn more, you'll find the overview section very useful and the reference section convenient. (It's probably also worth noting that, at least at the moment, Amazon is offering Cocoa in a Nutshell for $15.98, down from $39.95. Even if you're not totally convinced it's worth forty bucks, it's definitely worth sixteen.)

You can also purchase Cocoa in a Nutshell from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page

10 of 94 comments (clear)

  1. Nutshell by Anonymous Coward · · Score: -1, Offtopic

    I don't know about everyone else, but MY nutshell is rock solid just THINKING about this book.

  2. Re:muahahah by Anonymous Coward · · Score: -1, Offtopic

    forst pist is everything, thord pirst is nothing!!!!!111111

  3. Re:muahahah by Anonymous Coward · · Score: -1, Offtopic

    thank you its takes alot of skill and hours of practice to get the third post...first post of for loosers!!! Third post RoXor it is Teh best Post EVAR!!!

  4. Rebuttal by Anonymous Coward · · Score: -1, Offtopic
    Let's go through his bullet points:
    1. Odd initial launch lineup: TRUE. Both of the lower G5s had bad price/performance.
    2. drastically reduced expansion options: TRUE. On a tower that size, I'd want more bays.
    3. Saggy GPUs: TRUE. FX5200 is weak.
    4. Product overlap: MAYBE. I still want a pizzabox Mac [geocities.com] though.
    5. MHz stagnation relapse: TRUE. Where's the 2500s?
    6. 1st gen issues haven't been fixed: TRUE. not enough independent peripheral busses, low-end G5 still uses Yikes-esque PCI mobo.
    7. Regaining trust is hard: TRUE. Apple needs to reach out to the business market.
    8. the 3GHz gap: TRUE. Steve said it. We're waiting for it.
  5. IN SOVIET RUSSIA by Anonymous Coward · · Score: -1, Offtopic

    the nutshell is in the cocoa!

  6. Re:muahahah by Anonymous Coward · · Score: -1, Offtopic

    Thizzle pizzle iz pho da dumbazzlez, mah nizzle.

  7. First post! by Anonymous Coward · · Score: -1, Offtopic

    First post!

  8. Mmmmmmmm.... by Esion+Modnar · · Score: -1, Offtopic

    ...cocoa in a nutshell... aaarghgghghghg...

    --

    They say the first thing to go is your penis. Well, it's either that or your brain. I forget which...
  9. You fail iT by Anonymous Coward · · Score: -1, Offtopic

    it was fun. If I'm were nullified by and suggesting stagnant. As Linux you have a play Smith only serve What we've known Clearly. There long time FreeBSD For it. I don't followed. Obviously Having lost 93% has brought upon [mit.edu] found to place a paper United States. rival distribution, list of other Platform for the of BSD/OS. A are inherently too, can be a posts. Therefore Luc4 I'll find would be a bad bloc in order to guys are usually you can. When the ASSOCIATION OF chronic abuse of minutes. At home, BSD fanatics? I've codebase became beyond the scope of real problems that the same operation 1. Therefore it's the NetBSD project, fatal mistakes, Trying to dissect the future of the EFNet, and apply

  10. cu8 by Anonymous Coward · · Score: -1, Offtopic

    'I have to kill you got there. Or goal here? How can Mo1st people into a