Programming in Objective-C

Front Cover
Addison-Wesley Professional, 2012 - Computers - 544 pages
17 Reviews

Programming in Objective-C, Fourth Edition

Updated for iOS 5 and ARC


Programming in Objective-C is a concise, carefully written tutorial on the basics of Objective-C and object-oriented programming for Apple's iOS and Mac platforms.

The book makes no assumptions about prior experience with object-oriented programming languages or with the C language (which Objective-C is based upon). Because of this, both beginners and experienced programmers alike can use this book to quickly and effectively learn the fundamentals of Objective-C.

Readers can also learn the concepts of object-oriented programming without having to first learn all of the intricacies of the underlying C programming language. This unique approach to learning, combined with many small program examples and exercises at the end of each chapter, makes Programming in Objective-C ideally suited for either classroom use or self-study.

The fourth edition of this book has been updated to cover the significant changes that first appeared in iOS 5 and Xcode 4.2, including the use of Automatic Reference Counting (ARC) to improve and simplify memory management in Objective-C programs.


“The best book on any programming language that I've ever read. If you want to learn Objective-C, buy it.”—Calvin Wolcott


“An excellent resource for a new programmer who wants to learn Objective-C as their first programming language—a woefully underserved market.”—Pat Hughes


Table of Contents

1 Introduction

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

14 Introduction to the Foundation Framework

15 Numbers, Strings, and Collections

16 Working with Files

17 Memory Management and Automatic Reference Counting

18 Copying Objects

19 Archiving

20 Introduction to Cocoa and Cocoa Touch

21 Writing iOS Applications

A Glossary

B Address Book Example Source Code

  

What people are saying - Write a review

User ratings

5 stars
3
4 stars
7
3 stars
5
2 stars
2
1 star
0

Review: Programming in Objective C

User Review  - Chris Westin - Goodreads

If you already know C, then there's a great deal of repetitive material mixed in with the Objective-C additions. And the Objective-C additions aren't really explained, just shown as patterns to use ... Read full review

Review: Programming in Objective-C 2.0

User Review  - Ray Pace - Goodreads

I found the book a good read and learned about objective c. I find it hard to go back too as a reference when I have a question. The index appears to be very poor or incomplete so I spend time searching for things I remember reading about sometime earlier. Read full review

Contents

1 Introduction
1
2 Programming in ObjectiveC
7
3 Classes Objects and Methods
27
4 Data Types and Expressions
51
5 Program Looping
71
6 Making Decisions
93
7 More on Classes
127
8 Inheritance
151
14 Introduction to the Foundation Framework
303
15 Numbers Strings and Collections
307
16 Working with Files
369
17 Memory Management and Automatic Reference Counting
399
18 Copying Objects
413
19 Archiving
425
20 Introduction to Cocoa and Cocoa Touch
443
21 Writing iOS Applications
447

9 Polymorphism Dynamic Typing and Dynamic Binding
177
10 More on Variables and Data Types
195
11 Categories and Protocols
219
12 The Preprocessor
233
13 Underlying C Language Features
247
Glossary
479
Address Book Example Source Code
487
Index
493
Copyright

Common terms and phrases

About the author (2012)

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), and 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. In 2003 Kochan wrote Programming in Objective-C (Sams, 2003), and followed that with another Mac-related title, Beginning AppleScript (Wiley, 2004).

Bibliographic information