There was a problem sending you an sms. Check your phone number or try again later.
To get Scribd mobile enter your number and we'll send you a link to the Scribd app for iPhone & Android.We've sent a link to the Scribd app. If you didn't receive it, try again.
Text me
We'll never share your phone number.
Sections
Who Should Read This Document
Organization of This Document
Introduction
Conventions
See Also
The Runtime System
Memory Management
Objects
Object Basics
id
Dynamic Typing
Object Messaging
Message Syntax
Sending Messages to nil
The Receiver’s Instance Variables
Polymorphism
Dynamic Binding
Dynamic Method Resolution
Dot Syntax
Listing1-1 Accessing properties using dot syntax
Listing1-2 Accessing properties using bracket syntax
Classes
Inheritance
Figure1-1 Some drawing program classes
Figure1-2 Rectangle instance variables
Class Types
Class Objects
Figure1-3 The inheritance hierarchy for NSCell
Listing1-3 Implementation of the initialize method
Class Names in Source Code
Testing Class Equality
Source Files
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
Figure2-1 The scope of instance variables (@package scope not shown)
Messages to self and super
An Example: Using self and super
Using super
Redefining self
Allocating and Initializing Objects
The Returned Object
Implementing an Initializer
Constraints and Conventions
Handling Initialization Failure
Coordinating Classes
Figure3-1 Incorporating an inherited initialization method
Figure3-2 Covering an inherited initialization method