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

Table Of Contents

Who Should Read This Document
Introduction
Organization of This Document
Conventions
See Also
Memory Management
The Runtime System
Objects
Object Basics
Objects, Classes, and Messaging
id
Dynamic Typing
Message Syntax
Sending Messages to nil
The Receiver’s Instance Variables
Polymorphism
Dynamic Binding
Dynamic Method Resolution
Dot Syntax
Classes
Inheritance
Figure 1-2 Rectangle instance variables
Class Types
Class Objects
Figure 1-3 The inheritance hierarchy for NSCell
Listing 1-1 Implementation of the initialize method
Class Names in Source Code
Testing Class Equality
Source Files
Defining a Class
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 (@packagescope not shown)
An Example: Using self and super
Using super
Redefining self
Declaring Interfaces for Others to Implement
Protocols
Methods for Others to Implement
Declaring Interfaces for Anonymous Objects
Nonhierarchical Similarities
Formal Protocols
Declaring a Protocol
Optional Protocol Methods
Informal Protocols
Protocol Objects
Adopting a Protocol
Conforming to a Protocol
Type Checking
Protocols Within Protocols
Referring to Other Protocols
Overview
undeclared properties
Property Declaration and Implementation
Declared Properties
Property Declaration
Listing 4-1 Declaring a simple property
Property Declaration Attributes
Property Implementation Directives
Listing 4-3 Using @dynamic with NSManagedObject
Using Properties
Supported Types
Property Redeclaration
Core Foundation
Subclassing with Properties
Runtime Difference
Adding Methods to Classes
Categories and Extensions
Extensions
Creating Associations
Listing 6-1 Establishing an association between an array and a string
Associative References
Retrieving Associated Objects
Breaking Associations
Complete Example
The for…in Syntax
Fast Enumeration
Adopting Fast Enumeration
Using Fast Enumeration
Default Dynamic Behavior
Static Typing
Enabling Static Behavior
Return and Parameter Types
Static Typing to an Inherited Class
Methods and Selectors
SEL and @selector
Selectors
Method Return and Parameter Types
Varying the Message at Runtime
The Target-Action Design Pattern
Avoiding Messaging Errors
Enabling Exception-Handling
Exception Handling
Threading
Listing 11-2 Locking a method using a custom semaphore
Document Revision History
class object
Glossary
0 of .
Results for:
No results containing your search query
P. 1
Objective c

Objective c

Ratings: (0)|Views: 5|Likes:
Published by Olga Papadimitriou

More info:

Published by: Olga Papadimitriou on Sep 13, 2012
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

08/25/2013

pdf

text

original

You're Reading a Free Preview
Pages 4 to 42 are not shown in this preview.
You're Reading a Free Preview
Pages 46 to 93 are not shown in this preview.
You're Reading a Free Preview
Pages 97 to 106 are not shown in this preview.

You're Reading a Free Preview

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