高級Mac OS X編程

高級Mac OS X編程

《高級Mac OS X編程》是2011年出版的圖書,作者是Mark Dalrymple。本書主要是對Mac OS X編程知識的講解。

基本介紹

  • 中文名:高級Mac OS X編程
  • 外文名:Advanced Mac OS X Programming The Big Nerd Ranch Guide
  • 作者:Mark Dalrymple
  • 發行時間:2011年
  • 地區美國
  • 版本:英文版
  • 語言英文
內容簡介,圖書目錄,

內容簡介

Mac OS X 是蘋果電腦之作業系統軟體的 Mac OS最新版本。Mac OS X 於 2001年首次推出。它包含兩個主要的部份:Darwin,是以 BSD 原始碼和 Mach 微核心 為基礎,類似 Unix 的開放原始碼環境,由蘋果電腦採用和與獨立開發者協同作進一步的開發;及一個由蘋果電腦開發,命名為 Aqua 之有著作權的 GUI。
內容截圖內容截圖
Mac OS X Server 亦同時於2001年發售. 架構上來說與工作站(客戶端)版本相同,只有在包含的工作群組管理和管理軟體工具上有所差異,提供對於關鍵網路服務的簡化存取,像是郵件傳輸伺服器, samba 軟體,LDAP 目錄伺服器,以及域名伺服器(DNS)。同時它也有不同的授權型態。
While there are several books on programming for Mac OS X, Advanced Mac OS X Programming: The Big Nerd Ranch Guide is the only one that contains explanations of how to leverage the powerful underlying technologies. This book gets down to the real nitty-gritty. The third edition is updated for Mac OS X 10.5 and 10.6 and covers new technologies like DTrace, Instruments, Grand Central Dispatch, blocks, and NSOperation.

圖書目錄

Foreword ....................................................................................................................... xv
Introduction ................................................................................................................. xvii
Mac OS X: Built to Evolve .................................................................................... xvii
This Book ............................................................................................................ xvii
Typographical Conventions ...................................................................................... xix
Online Materials .................................................................................................... xix
1. C and Objective-C ........................................................................................................ 1
C ........................................................................................................................... 1
The Compiler pipeline ....................................................................................... 1
The C preprocessor ........................................................................................... 2
Const and volatile variables .............................................................................. 13
Variable argument lists ..................................................................................... 13
Bitwise operations ........................................................................................... 21
Objective-C ............................................................................................................ 27
C callbacks in Objective-C ............................................................................... 27
Objective-C 2.0 .............................................................................................. 29
Exercises ............................................................................................................... 40
2. The Compiler ............................................................................................................. 43
Handy Flags ........................................................................................................... 43
Debugging ..................................................................................................... 44
Warnings ....................................................................................................... 45
Seeing Preprocessor Output ...................................................................................... 46
Seeing the Generated Assembly Code ......................................................................... 47
Compiler Optimization ............................................................................................. 48
GCC Extensions ..................................................................................................... 49
Name Mangling ...................................................................................................... 50
Testing the compiler version ............................................................................. 50
The Optimizer ................................................................................................ 50
Vectorization .................................................................................................. 51
Even More Compiler Flags ....................................................................................... 51
64-Bit Computing ................................................................................................... 53
The 64-bit programming model ......................................................................... 53
New Objective-C runtime ................................................................................. 56
Universally Fat Binaries ........................................................................................... 56
Fat binaries from the command line ................................................................... 56
Fat binaries in Xcode ...................................................................................... 60
Fat binary considerations .................................................................................. 60
3. Blocks ....................................................................................................................... 61
Block Syntax ......................................................................................................... 62
Return Values ......................................................................................................... 63
Accessing Enclosing Scope ....................................................................................... 64
Changing Enclosing Scope ....................................................................................... 64
Block Variables ...................................................................................................... 65
Variable Capture Redux ........................................................................................... 66
Blocks as Objects ................................................................................................... 67

相關詞條

熱門詞條

聯絡我們