标题：高级Mac OS X编程
图书简介：
中文名:高级Mac OS X编程  高级Mac OS X编程
原名:Advanced Mac OS X Programming The Big Nerd Ranch Guide
作者:Mark Dalrymple
版本:英文版
发行时间:2011年
地区:美国
语言:英文 [1]
内容简介：

  内容截图Mac OS X 是苹果电脑之操作系统软件的 Mac OS最新版本。Mac OS X 于 2001年 首次推出。它包含两个主要的部份：Darwin，是以 BSD 原始码和 Mach 微核心 为基础，类似 Unix 的开放原始码环境，由苹果电脑采用和与独立开发者协同作进一步的开发；及一个由苹果电脑开发，命名为 Aqua 之有版权的 GUI。
Mac OS X Server 亦同时于2001年发售. 架构上来说与工作站(客户端)版本相同，只有在包含的工作群组管理和管理软件工具上有所差异，提供对于关键网络服务的简化存取，像是邮件传输服务器， samba 软件，LDAP 目录服务器，以及域名服务器(DNS)。同时它也有不同的授权型态。[1]
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.[1]
图书目录
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 
[1]