Learn Cocoa on the Mac (Paperback)
暫譯: 在 Mac 上學習 Cocoa (平裝本)

Jack Nutting, Dave Mark, Jeff LaMarche

  • 出版商: Apress
  • 出版日期: 2010-02-22
  • 售價: $1,600
  • 貴賓價: 9.5$1,520
  • 語言: 英文
  • 頁數: 374
  • 裝訂: Paperback
  • ISBN: 1430218592
  • ISBN-13: 9781430218593
  • 已過版

買這商品的人也買了...

相關主題

商品描述

The Cocoa frameworks are some of the most powerful frameworks for creating native desktop applications available on any platform today, and Apple gives them away, along with the Xcode development environment, for free! However, for a first-time Mac developer, just firing up Xcode and starting to browse the documentation can be a daunting task. The Objective-C class reference documentation alone would fill thousands of printed pages, not to mention all the other tutorials and guides included with Xcode. Where do you start? Which classes are you going to need to use? How do you use Xcode and the rest of the tools?

This book answers these questions and more, helping you find your way through the jungle of classes, tools, and new concepts so that you can get started on the next great Mac OS X application today. Jack Nutting is your guide through this forest; he's lived here for years, and he'll show you which boulder to push, which vine to chop, and which stream to float across in order to make it through. You will learn not only how to use the components of this rich framework, but also which of them fit together, and why.

Jack Nutting’s approach, combining pragmatic problem-solving with a deep respect for the underlying design philosophies contained within Cocoa, stems from years of experience using these frameworks. He’ll show you which parts of your application require you to jump in and code a solution, and which parts are best served by letting Cocoa take you where it wants you to go. The path over what looks like a mountain of components and APIs has never been more thoroughly prepared for your travels. With Jack’s guidance, the steep learning curve becomes a pleasurable adventure. There is still much work for the uninitiated, but by the time you’re done, you will be well on your way to becoming a Cocoa Master.

  • Begin to really get to grips with the full Cocoa toolset—practical, hands-on learning
  • Become familiar with the core concepts at the heart of every Cocoa application
  • See which parts of the iPhone SDK overlap with the Mac OS X development tools so you can explore both Mac and iPhone development
  • Packed full of goodness and enthusiasm for the Cocoa frameworks from a developer perspective

What you’ll learn

  • How to actually make your own Cocoa applications—this is much more than just a quick introduction to Cocoa!
  • Which classes, of the dozens included in Cocoa, are truly central to Cocoa development
  • How to best use MVC architecture concepts in a Cocoa application
  • How the various pieces of the Cocoa frameworks fit with each other and into the MVC architecture
  • Which parts of Cocoa truly enable “visual programming”, letting you reap the benefits of proven, reusable code libraries that Apple gives you for free
  • How to recognize recurring design patterns used throughout Cocoa, and put them to proper use in your own code
  • How to approach Cocoa from different programming environments
  • How to use the facilities provided in Snow Leopard to create software that distributes itself automatically among all available CPUs, improving the user experience for your users.

Who is this book for?

Anyone with basic understanding of object-oriented programming who wants to try out Mac OS X application programming, as well as iPhone developers who want to extend their knowledge of Cocoa Touch to include the Mac-specific technologies included with Cocoa.

Table of Contents

  1. Must Love Cocoa
  2. Hello, World
  3. Lights, Camera… Actions! (and Outlets, Too)
  4. GUI Components
  5. Using Table Views
  6. Cocoa Bindings
  7. Core Data Basics
  8. Core Data Relationships
  9. Search and Retrieve Core Data with Criteria
  10. Windows and Menus and Sheets
  11. Document-Based Applications
  12. Exceptions, Signals, Errors, and Debugging  2
  13. Drawing in Cocoa
  14. Advanced Drawing Topics
  15. Working with Files
  16. Concurrency
  17. Future Paths

商品描述(中文翻譯)

Cocoa 框架是當今任何平台上創建原生桌面應用程序的最強大框架之一,Apple 免費提供這些框架以及 Xcode 開發環境!然而,對於第一次接觸 Mac 的開發者來說,啟動 Xcode 並開始瀏覽文檔可能是一項艱鉅的任務。僅僅是 Objective-C 類參考文檔就足以填滿數千頁印刷頁面,更不用說 Xcode 附帶的所有其他教程和指南了。你該從哪裡開始?你需要使用哪些類別?如何使用 Xcode 和其他工具?

本書將回答這些問題以及更多,幫助你在類別、工具和新概念的叢林中找到方向,讓你能夠立即開始開發下一個偉大的 Mac OS X 應用程序。**Jack Nutting** 將是你在這片森林中的指導者;他在這裡生活多年,會告訴你該推哪塊巨石、該砍哪根藤蔓,以及該如何渡過哪條小溪,以便順利通過。你將學會如何使用這個豐富框架的組件,還有哪些組件是相互配合的,以及為什麼。

**Jack Nutting** 的方法結合了務實的問題解決與對 Cocoa 中所包含的設計哲學的深刻尊重,這源於他多年使用這些框架的經驗。他會告訴你應用程序的哪些部分需要你親自編寫解決方案,哪些部分則最好讓 Cocoa 自行處理。這條看似由組件和 API 組成的山路,為你的旅程做了充分的準備。在 Jack 的指導下,陡峭的學習曲線將變成一場愉快的冒險。對於初學者來說,仍然有很多工作要做,但當你完成時,你將朝著成為 Cocoa 大師的方向邁出堅實的一步。

- 開始真正掌握完整的 Cocoa 工具集——實用的動手學習
- 熟悉每個 Cocoa 應用程序核心概念
- 了解 iPhone SDK 的哪些部分與 Mac OS X 開發工具重疊,以便探索 Mac 和 iPhone 的開發
- 從開發者的角度充滿熱情地介紹 Cocoa 框架的所有優點

你將學到的內容:
- 如何實際製作自己的 Cocoa 應用程序——這不僅僅是對 Cocoa 的快速介紹!
- 在 Cocoa 中包含的數十個類別中,哪些類別對 Cocoa 開發至關重要
- 如何在 Cocoa 應用程序中最佳使用 MVC 架構概念
- Cocoa 框架的各個部分如何相互配合以及如何融入 MVC 架構
- Cocoa 中哪些部分真正實現了「視覺編程」,讓你能夠利用 Apple 免費提供的經過驗證的可重用代碼庫的好處
- 如何識別 Cocoa 中使用的重複設計模式,並在自己的代碼中正確使用它們
- 如何從不同的編程環境接觸 Cocoa
- 如何利用 Snow Leopard 提供的功能創建能夠自動在所有可用 CPU 之間分配的軟件,改善用戶的使用體驗。

這本書適合誰?
任何對面向對象編程有基本了解的人,想要嘗試 Mac OS X 應用程序編程,以及希望擴展其 Cocoa Touch 知識以包括 Cocoa 中的 Mac 專用技術的 iPhone 開發者。

目錄:
1. 必須熱愛 Cocoa
2. 哈囉,世界
3. 燈光、相機……行動!(還有 Outlet)
4. GUI 元件
5. 使用表格視圖
6. Cocoa 綁定
7. Core Data 基礎
8. Core Data 關係
9. 使用條件搜索和檢索 Core Data
10. 視窗、菜單和表單
11. 基於文檔的應用程序
12. 異常、信號、錯誤和調試
13. 在 Cocoa 中繪圖
14. 高級繪圖主題
15. 文件操作
16. 並發
17. 未來的路徑