Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
1Activity

Table Of Contents

Introduction to The Objective-C 2.0 Programming Language
Who Should Read This Document
Organization of This Document
Conventions
See Also
Objects
id
Objects and Classes
Dynamic Typing
Object Messaging
Message Syntax
Sending Messages to nil
The Receiver’s Instance Variables
Polymorphism
Dynamic Binding
Dot Syntax
Listing 1-1 Accessing properties using the dot syntax
Listing 1-2 Accessing properties using accessor methods
Classes
Inheritance
Class Types
Class Objects
Figure 1-3 Inheritance hierarchy for NSCell
Listing 1-3 Implementation of the initialize method
Class Names in Source Code
Class Interface
Importing the Interface
Referring to Other Classes
The Role of the Interface
Class Implementation
Referring to Instance Variables
The Scope of Instance Variables
Figure 2-1 The scope of instance variables
Adding Methods to Classes
Categories and Extensions
How you Use Categories
Categories of the Root Class
Extensions
Overview
Declared Properties
Listing 4-1 Declaring properties in a class
Using Properties
Property Declaration
Property Implementation Directives
Listing 4-3 Using @dynamic with direct method implementations
Property Declaration Attributes
Property Re-declaration
Copy
Markup and Deprecation
Core Foundation
Example
Listing 4-4 Declaring properties for a class
Subclassing with Properties
Performance and Threading
Property Introspection
Runtime Differences
Declaring Interfaces for Others to Implement
Protocols
Methods for Others to Implement
Declaring Interfaces for Anonymous Objects
Non-Hierarchical Similarities
Formal Protocols
Declaring a Protocol
Optional Protocol Methods
Informal Protocols
Protocol Objects
Adopting a Protocol
Conforming to a Protocol
Protocols Within Protocols
Referring to Other Protocols
The for…in Feature
Fast Enumeration
Using Fast Enumeration
The objc_msgSend Function
How Messaging Works
The Target-Action Design Pattern
Avoiding Messaging Errors
Dynamic Method Resolution
Using Hidden Arguments
Messages to self and super
An Example
Using super
Redefining self
Static Typing
Enabling Static Behavior
Type Checking
Return and Argument Types
Static Typing to an Inherited Class
Getting a Method Address
Handling Exceptions
Exception Handling
Throwing Exceptions
Processing Exceptions
Synchronizing Thread Execution
Threading
Listing 10-3 Locking a method using a custom semaphore
Mixing Objective-C and C++ Language Features
Listing 11-1 Using C++ and Objective-C instances as instance variables
Using C++ With Objective-C
C++ Lexical Ambiguities and Conflicts
Interacting with the Runtime System
The Runtime System
Allocating and Initializing Objects
The Returned Object
Arguments
Coordinating Classes
Figure 12-1 Incorporating an Inherited Initialization Method
Figure 12-2 Covering an Inherited Initialization Model
The Designated Initializer
Figure 12-3 Covering the Designated Initializer
Combining Allocation and Initialization
Memory Management
Forwarding
Forwarding and Multiple Inheritance
Surrogate Objects
Forwarding and Inheritance
Dynamic Loading
Remote Messaging
Distributed Objects
Language Support
Type Encodings
Messages
Defined Types
Language Summary
Preprocessor Directives
Compiler Directives
@class
Categories
Deprecation Syntax
Method Declarations
Method Implementations
Naming Conventions
Glossary
Document Revision History
Index
0 of .
Results for:
No results containing your search query
P. 1
c-ebook

c-ebook

Ratings: (0)|Views: 9 |Likes:
Published by Hari Shankaran

More info:

Published by: Hari Shankaran on Jan 20, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/12/2011

pdf

text

original

You're Reading a Free Preview
Pages 4 to 26 are not shown in this preview.
You're Reading a Free Preview
Pages 30 to 33 are not shown in this preview.
You're Reading a Free Preview
Pages 37 to 76 are not shown in this preview.
You're Reading a Free Preview
Pages 80 to 147 are not shown in this preview.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->