Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword or section
Like this

Table Of Contents

Introduction to The Objective-C 2.0 Programming Language
Who Should Read This Document
Organization of This Document
See Also
Objects and Classes
Dynamic Typing
Object Messaging
Message Syntax
Sending Messages to nil
The Receiver’s Instance Variables
Dynamic Binding
Dot Syntax
Listing 1-1 Accessing properties using the dot syntax
Listing 1-2 Accessing properties using accessor methods
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
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
Markup and Deprecation
Core Foundation
Listing 4-4 Declaring properties for a class
Subclassing with Properties
Performance and Threading
Property Introspection
Runtime Differences
Declaring Interfaces for Others to Implement
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
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
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 and Multiple Inheritance
Surrogate Objects
Forwarding and Inheritance
Dynamic Loading
Remote Messaging
Distributed Objects
Language Support
Type Encodings
Defined Types
Language Summary
Preprocessor Directives
Compiler Directives
Deprecation Syntax
Method Declarations
Method Implementations
Naming Conventions
Document Revision History
0 of .
Results for:
No results containing your search query
P. 1


Ratings: (0)|Views: 44|Likes:
Published by Sarap Karthik

More info:

Published by: Sarap Karthik on Aug 02, 2011
Copyright:Attribution Non-commercial


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





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.

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

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