Objective-C Pocket Reference

Andrew Duncan

  • 出版商: O'Reilly
  • 出版日期: 2003-01-28
  • 定價: $350
  • 售價: 9.0$315
  • 語言: 英文
  • 頁數: 128
  • 裝訂: Paperback
  • ISBN: 0596004230
  • ISBN-13: 9780596004231
  • 相關分類: Apple Developer
  • 立即出貨 (庫存 < 3)

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

商品描述

Objective-C is an exciting and dynamic approach to C-based object-oriented programming; it's the approach adopted by Apple as the foundation for programming under Mac OS X, a Unix-based operating system gaining wide acceptance among programmers and other technologists. Objective-C is easy to learn and has a simple elegance that is a welcome breath of fresh air after the abstruse and confusing C++. To help you master the fundamentals of this language, you'll want to keep the Objective-C Pocket Reference close at hand. This small book contains a wealth of valuable information to speed you over the learning curve.

In this pocket reference, author Andrew Duncan provides a quick and concise introduction to Objective-C for the experienced programmer. In addition to covering the essentials of Objective-C syntax, Andrew also covers important faces of the language such as memory management, the Objective-C runtime, dynamic loading, distributed objects, and exception handling.

O'Reilly's Pocket References have become a favorite among programmers everywhere. By providing important details in a succinct, well-organized format, these handy books deliver just what you need to complete the task at hand. When you've reached a sticking point in your work and need to get to a solution quickly, the new Objective-C Pocket Reference is the book you'll want to have.

Table of Contents

Introduction

What Is Objective-C?
     Dynamic Dispatch
     Dynamic Typing
     Dynamic Loading
     Which Objective-C?
     How Do I Get Started?

Elements of the Language
     Objects
     Classes
     Inheritance and Subtyping
     Fields
     Methods
     Categories
     Protocols
     Declarations
     Predefined Types, Constants, and Variables

Compiler and Preprocessor Directives
     Class Declarations and Definitions
     Forward Declarations
     Expanding Directives
     Preprocessor Symbols

Compiler Flags

Remote Messaging
     Pointer Parameter Qualifiers
     Return Value Qualifiers
     Object Qualifiers

Object Lifecycle
     Creating an Object
     Copying an Object
     Deallocating an Object

Runtime Errors
     Object Error Handling
     Exceptions in Cocoa

Runtime Environment
     Class Objects
     Metaclass Objects
     Selectors
     Protocol Objects

Root Classes
     Fields
     Methods
     The Object Class
     The NSObject Class

Forwarding Messages
     Object Forwarding
     NSObject Forwarding

Memory Management
     Manual Memory Management
     Reference Counting
     Garbage Collection

Archiving Objects
     Archiving Descendants of Object
     Archiving Descendants of NSObject

Key-Value Coding
     Access Permissions
     NSKeyValueCoding Methods
     Handling Key Lookup Failures

Optimizing Method Calls

Objective-C++

Objective-C Resources

Index

商品描述(中文翻譯)

Objective-C是一種令人興奮且動態的基於C的面向對象編程方法;這是蘋果採用的方法,作為在Mac OS X下進行編程的基礎,該操作系統是一個在程序員和其他技術人員中廣受歡迎的基於Unix的操作系統。Objective-C易於學習,並且具有簡單優雅的特點,這是在深奧和令人困惑的C++之後的一股清新之風。為了幫助您掌握這種語言的基礎知識,您會希望隨時保持《Objective-C口袋參考》在手邊。這本小書包含了大量有價值的信息,可以加快您的學習曲線。在這本口袋參考中,作者Andrew Duncan為有經驗的程序員提供了一個快速而簡潔的Objective-C介紹。除了涵蓋Objective-C語法的基本要素外,Andrew還涵蓋了語言的重要方面,如內存管理、Objective-C運行時、動態加載、分佈式對象和異常處理。O'Reilly的口袋參考書已經成為程序員們的最愛。這些方便的書籍以簡潔、井井有條的格式提供重要細節,正好能夠滿足您完成手頭任務所需的內容。當您在工作中遇到困難並需要快速找到解決方案時,這本新的《Objective-C口袋參考》將是您必備的書籍。

目錄
介紹
什麼是Objective-C?
動態調度
動態類型
動態加載
哪種Objective-C?
如何入門?

語言的要素
對象

繼承和子類型
字段
方法
類別
協議
聲明
預定義類型、常量和變量

編譯器和預處理器指令
類聲明和定義
前向聲明
擴展指令
預處理器符號

編譯器標誌

遠程消息
指針參數限定符
返回值限定符
對象限定符

對象生命週期
創建對象
複製對象
釋放對象

運行時錯誤
對象錯誤處理
Cocoa中的異常

運行時環境
類對象
元類對象
選擇器
協議對象

根類
字段
方法
Object類
NSObject類

消息轉發
對象轉發
NSObject轉發

內存管理
手動內存管理
引用計數
垃圾回收

對象存檔
存檔Object的子類
存檔NSObject的子類

鍵值編碼
訪問權限
NSKeyValueCoding方法
處理鍵查找失敗

優化方法調用

Objective-C++

Objecti