Mac OS X Programming
暫譯: Mac OS X 程式設計

Dan Sydow

  • 出版商: New Riders
  • 出版日期: 2002-01-01
  • 售價: $1,880
  • 貴賓價: 9.5$1,786
  • 語言: 英文
  • 頁數: 400
  • 裝訂: Paperback
  • ISBN: 0735711682
  • ISBN-13: 9780735711686
  • 相關分類: MAC OS 蘋果電腦
  • 已絕版

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

商品描述

This book provides the reader with definitions, details, and explanations of the various components that make up this new operating system. Understanding the operating system helps the reader use the programming tools and the Carbon application programming interface (API) - both of which are covered extensively in this book.Mac OS X is a blend of old and new. Much of the original programming API (now referred to as the Classic API) is still usable. But it's been revamped and renamed - it's now the Carbon API. This modified set of functions includes plenty of new routines that make a Mac programmer's work easier and more powerful - provided that the programmer knows how to make use of the new code. The reader learns about the all new Carbon Event Manager, as well as the changes and enhancements that have been made to existing managers (such as the Window Manager and the Menu Manager).Readers new to Mac programming will appreciate the journey that takes them from the start of a new Macintosh project to the final build of a standalone Mac OS X application. Readers experienced in programming the Mac will also find this same material of great interest - and these readers will also benefit from the lengthy section on porting existing Mac OS 8 and 9 applications to Mac OS X. Finally, all readers will appreciate the Carbon API reference section that provides information and example code for dozens of the most commonly used Carbon routines.

Table of Contents

1. System Components and Programming Technologies.

System Software Layers. Application Environments and _Programming Languages. For More Information.


2. Overview of Mac OS X Programming.

Development Environments. HelloWorld: Walking Through a Simple Example Program. Handling Program Errors. Adding an Alert to the HelloWorldDebug Program. Adding a Picture to the HelloWorld Program. For More Information.


3. Events and the Carbon _Event Manager.

Events and Event Handlers. Example Programs. For More Information.


4. Windows.

Opening and Closing Windows. Updating Window Content. Associating Information with _Windows. For More Information.


5. Controls.

Command Signatures and _Control IDs. Buttons. Radio Buttons. Checkboxes. Text Input Fields. For More Information.


6. Menus.

Menu Basics. Altering Menus Characteristics. Pop-Up Menus. For More Information.


7. QuickDraw Graphics.

QuickDraw Basics. Defining and Drawing Shapes. Patterns. For More Information.


8. Text and Localization.

Localized Resource Files. Localizing Window Content _Text. For More Information.


9. QuickTime Movies and _File Handling.

Files and Navigation Services. QuickTime Movies. For More Information.


10. Bundles and Icons.

Applications, Bundles, and Packages. Registering a Creator Code. Application Icons. For More Information.


11. Porting Mac OS 8/9 Code _to Mac OS X.

Carbon Dater: Getting Ready for Carbon. Tips for Handling Major Porting Issues. For More Information.


A. Carbon API Summary.
B. UNIX and the Terminal.

UNIX and the UNIX Shell. UNIX Commands. Moving About. UNIX Programming.


Index.

商品描述(中文翻譯)

這本書為讀者提供了構成這個新操作系統的各種組件的定義、細節和解釋。理解操作系統有助於讀者使用編程工具和 Carbon 應用程式編程介面(API),這兩者在本書中都有廣泛的介紹。Mac OS X 是舊與新的融合。許多原始的編程 API(現在稱為 Classic API)仍然可以使用,但它已被重新設計並重新命名為 Carbon API。這組修改過的函數包含了許多新的例程,使 Mac 程式設計師的工作變得更輕鬆且更強大,前提是程式設計師知道如何利用這些新代碼。讀者將學習全新的 Carbon 事件管理器,以及對現有管理器(如窗口管理器和菜單管理器)所做的變更和增強。對於新接觸 Mac 編程的讀者來說,這本書將帶領他們從一個新的 Macintosh 專案的開始,一直到最終構建一個獨立的 Mac OS X 應用程式。對於有經驗的 Mac 程式設計師來說,這些內容同樣具有很大的吸引力,這些讀者也將從關於將現有 Mac OS 8 和 9 應用程式移植到 Mac OS X 的長篇章節中受益。最後,所有讀者都會欣賞 Carbon API 參考部分,該部分提供了有關數十個最常用的 Carbon 例程的信息和示例代碼。

目錄

1. 系統組件與編程技術。
系統軟體層。應用環境與編程語言。更多信息。

2. Mac OS X 編程概述。
開發環境。HelloWorld:逐步走過一個簡單的示例程式。處理程式錯誤。為 HelloWorldDebug 程式添加警報。為 HelloWorld 程式添加圖片。更多信息。

3. 事件與 Carbon 事件管理器。
事件與事件處理器。示例程式。更多信息。

4. 窗口。
開啟與關閉窗口。更新窗口內容。將信息與窗口關聯。更多信息。

5. 控制項。
命令簽名與控制 ID。按鈕。單選按鈕。複選框。文本輸入欄位。更多信息。

6. 菜單。
菜單基礎。修改菜單特性。彈出菜單。更多信息。

7. QuickDraw 圖形。
QuickDraw 基礎。定義與繪製形狀。圖案。更多信息。

8. 文本與本地化。
本地化資源檔案。本地化窗口內容文本。更多信息。

9. QuickTime 影片與檔案處理。
檔案與導航服務。QuickTime 影片。更多信息。

10. 包與圖示。
應用程式、包與套件。註冊創建者代碼。應用程式圖示。更多信息。

11. 將 Mac OS 8/9 代碼移植到 Mac OS X。
Carbon Dater:為 Carbon 做準備。處理主要移植問題的提示。更多信息。

A. Carbon API 摘要。
B. UNIX 與終端。
UNIX 與 UNIX Shell。UNIX 命令。移動。UNIX 編程。

索引。

最後瀏覽商品 (20)