A carefully written introduction to Objective-C 2.0 and object-oriented programming for developers new to Mac OS X or iPhone programming
New To This Edition
This edition covers version 2.0 of the Objective-C language and includes a new chapter on programming with the Apple iPhone SDK.
Features and Benefits
* With Objective-C coming preinstalled on all copies of Mac OS X and with the release of the iPhone SDK, there is a rapidly growing demand for Objective-C programming information
* Detailed examples and well-crafted exercises greatly expedite the learning process
* Fully covers the new features of Objective-C 2.0
Table of Contents
1
Introduction
Part I: The Objective-C 2.0 Language
2
Programming in Objective-C
3
Classes, Objects, and Methods
4
Data Types and Expressions
5
Program Looping
6
Making Decisions
7
More on Classes
8
Inheritance
9
Polymorphism, Dynamic Typing, and Dynamic Binding
10
More on Variables and Data Types
11
Categories and Protocols
12
The Preprocessor
13
Underlying C Language Features
II: The Foundation Framework
14
Introduction to the Foundation Framework
15
Numbers, Strings, and Collections
16
Working with Files
17
Memory Management
18
Copying Objects
19
Archiving
III: Cocoa and the iPhone SDK
20
Introduction to Cocoa
21
Writing iPhone Applications
IV: Appendixes
A
Glossary
B
Objective-C 2.0 Language Summary
C
Address Book Source Code
D
Resources
Preface
top
Programming in Objective-C 2.0
1 Introduction
Part I: The Object-C 2.0 Language
2 Programming in Objective-C
3 Classes, Objects, and Methods
4 Data Types and Expressions
5 Program Looping
6 Making Decisions
7 More on Classes
8 Inheritance
9 Polymorphism, Dynamic Typing, and Dynamic Binding
10 More on Variables and Data Types
11 Tying Up Some Loose Ends
12 The Preprocessor
13 Underlying C Language Features
Part II: The Foundation Framework
14 Introduction to the Foundation
15 Numbers, Strings, and Collections
16 Working with the File System
17 Copying Objects
18 Memory Management
19 Archiving
Part III: Cocoa Programming and the iPhone SDK
20 Introduction to Cocoa Programming
21 The iPhone SDK
Part IV: Appendixes
A Glossary
B Objective-C Language Summary
C Foundation Framework Headers
D Fraction and Address Book Examples
E Resources
About the Authors
top
Stephen Kochan is the author and coauthor of several bestselling titles on the C language, including Programming in C (Sams, 2004), Programming in ANSI C (Sams, 1994), and Topics in C Programming (Wiley, 1991), as well as several Unix titles, including Exploring the Unix System (Sams, 1992) and Unix Shell Programming (Sams 2003). He has been programming on Macintosh computers since the introduction of the first Mac in 1984, and he wrote Programming C for the Mac as part of the Apple Press Library.
He maintains a web site and support forum for Programming in Objective-C 2.0 at classroomm.com/objective-c