Objective-C Pocket Reference
暫譯: Objective-C 口袋參考手冊

Andrew Duncan

  • 出版商: O'Reilly
  • 出版日期: 2003-01-28
  • 定價: $350
  • 售價: 9.5$333
  • 語言: 英文
  • 頁數: 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 的物件導向程式設計方法;它是 Apple 採用的基礎,用於 Mac OS X 的程式設計,這是一個在程式設計師和其他技術人員中獲得廣泛接受的 Unix 基礎作業系統。Objective-C 容易學習,並且具有簡單優雅的特性,讓人感到耳目一新,尤其是在 C++ 的深奧和混亂之後。為了幫助你掌握這種語言的基本概念,你會希望隨身攜帶《Objective-C Pocket Reference》。這本小書包含了大量有價值的信息,可以幫助你快速克服學習曲線。

在這本口袋參考書中,作者 Andrew Duncan 為有經驗的程式設計師提供了 Objective-C 的快速且簡明的介紹。除了涵蓋 Objective-C 語法的基本要素外,Andrew 還介紹了語言的重要面向,例如記憶體管理、Objective-C 執行時、動態載入、分散式物件和例外處理。

O'Reilly 的口袋參考書已成為全球程式設計師的最愛。這些實用的書籍以簡潔且組織良好的格式提供重要細節,正好滿足你完成手頭任務的需求。當你在工作中遇到瓶頸,需要快速找到解決方案時,這本新的《Objective-C Pocket Reference》將是你想要擁有的書籍。

目錄

引言

什麼是 Objective-C?
     動態調度
     動態類型
     動態載入
     哪一種 Objective-C?
     我該如何開始?

語言的元素
     物件
     類別
     繼承與子類型
     欄位
     方法
     類別擴展
     協定
     宣告
     預定義類型、常數和變數

編譯器和預處理器指令
     類別宣告和定義
     前向宣告
     擴展指令
     預處理器符號

編譯器標誌

遠端訊息傳遞
     指標參數限定符
     返回值限定符
     物件限定符

物件生命週期
     創建物件
     複製物件
     釋放物件

執行時錯誤
     物件錯誤處理
     Cocoa 中的例外

執行時環境
     類別物件
     類元物件
     選擇器
     協定物件

根類別
     欄位
     方法
     物件類別
     NSObject 類別

轉發訊息
     物件轉發
     NSObject 轉發

記憶體管理
     手動記憶體管理
     參考計數
     垃圾回收

物件歸檔
     歸檔物件的子類
     歸檔 NSObject 的子類

鍵值編碼
     存取權限
     NSKeyValueCoding 方法
     處理鍵查找失敗

優化方法調用

Objective-C++

Objective-C 資源

索引

最後瀏覽商品 (20)