Core Data: Apple's API for Persisting Data on Mac OS X (英語) ペーパーバック – 2009/10/28
Kindle 端末は必要ありません。無料 Kindle アプリのいずれかをダウンロードすると、スマートフォン、タブレットPCで Kindle 本をお読みいただけます。
"Core Data" walks you through developing a full featured application based on the Mac OS X Core Data APIs. You'll discover how Core Data contributes to Cocoa applications, as well as some of the pitfalls and issues surrounding the current implementation. "Core Data" takes an unusual approach to explaining Core Data by focusing on a single application throughout the book.You'll start by building an application from scratch and as you learn new principals and abilities of Core Data. We won't gloss over any important details - you'll get it all. We'll explore not only how to get everything working properly, but also how to take advantage of shortcuts thanks to the flexible and customizable nature of the API. By the end of "Core Data", you'll have built a full-featured application, gained a complete understanding of Core Data, and learned how to integrate our application into OS X. Finally, at the end of the book you'll see numerous recipes that are useful in non-mainstream situations, or even in places where you wouldn't have thought to use Core Data before.
Marcus S. Zarra is the owner of Zarra Studios LLC and the creator of seSales and iWeb Buddy. In addition, he is a co-author of "Cocoa Is My Girlfriend," a wildly popular blog covering all aspects of Cocoa development. Marcus S. Zarra has been developing software since the mid-1980s and has written software in all of the major technological fields.
Amazon.com で最も参考になったカスタマーレビュー (beta)
It's not a 5-star book. It's a 5-star topic, and sadly (very very sadly) it's the only book I know of actually on that topic.
I think the author's intentions are good, and there's a lot of useful info. I'm grateful to have it.
But all of that has to be balanced against the maddening b.s. of trying to actually follow his examples. You know, to actually do what you're supposed to do with a programming book.
Up to chapter 5, it's a pretty good book. If you download the code from the publisher's web site, you'll discover that he names some of his objects differently than you would if you follow his instructions strictly. This actually will create problems for you potentially when you try and troubleshoot problems in your own code, but they're minor. Annoying and needless, but minor.
Then you get to chapter 5, and it's really not so minor anymore. Grab the book (print version or PDF) and work through the examples in chapter 5, and you will have a broken program. Don't take my word for it. Check out the forums and the errata page on their website, and you'll see others reporting the same problem. There is a complicated data migration described. After walking us through a fairly trivial example, he then goes on to give us a much more complicated version. He leaves large portions of that to the reader, and just goes instead for code. The problem is that he doesn't even give us some of the most important code. He shows us a very important ObjC method to add to the AppDelegate... but never even mentions the major alterations you need to make in another method to make that new one get called.
Perhaps it's unreasonable to expect programming book editors to actually go through the examples to see if it works. Perhaps it's unreasonable to expect all books to be as well-done as Hillegass' book.
What's sad is that I've been waiting for this kind of book ever since Core Data came out. And there are some very nice ideas here. I'm gonna slog through the rest and hope it gets better, because the topic is really important. If you plan to buy this book and really work through the examples, I think I'd still recommend it (since there's nothing else). But word to the wise: it's gonna require a LOT more work than a properly written and edited programming book would have.
"Core Data" leaves out a discussion of NSPredicate, the query language of Core Data. This is basically the same as leaving a discussion of the WHERE clause out of a SQL book. For the record, "Core Data" actually does cover NSPredicate -- for 3/4 of a page. And then it references Apple's documentation. Before I bought this book, I had already read Apple's docs and found them wanting. Apple's lame documentation was a motivating factor in my choice to purchase "Core Data".
If you need to make queries on the Core Data object graph, then do not buy this book. It doesn't help you learn Apple's different query language.
The only thing I found missing was much discussion of NSPersistentDocument and document-based apps, there is only an in-passing reference to this type of application but since Apple already has a great tutorial on this in their documentation it's not a major issue.
If you want to get up to speed quickly with Core Data I'd highly recommend this book. It is a much easier read than the official Apple documentation and covers all the bases. If nothing else, the Apple docs will be much easier to wrap your head around once you've worked through this book first.
Given that many people will be coming to core data on iPhone with new projects it would have been helpful to see three, clearly distinct, sub-sections:
1) starting a core data project from scratch on iPhone (post-SDK 3)
2) importing a core data model and persistent store from the desktop to use in an iPhone app (post-SDK 3)
3) upgrading an existing app (pre-SDK 3) to use core data
For iPhone developers new to core data I'd recommend building an app from scratch using the Apress, or PragProg, or Sams intro books and then reading this book to understand what core data is all about in the larger world view. No book that I'm aware really covers core data on iPhone very well.
- 洋書 > Computers & Technology > Apple > Home Computing & How-to > OS X
- 洋書 > Computers & Technology > Computer Science > Information Theory
- 洋書 > Computers & Technology > Computer Science > Modeling & Simulation
- 洋書 > Computers & Technology > Networking > Network Administration
- 洋書 > Computers & Technology > Programming > Software Design, Testing & Engineering > Software Development
- 洋書 > Computers & Technology > Web Development & Design > Web Design