Programming in Objective-C 2.0 (Developer's Library Series)

Programming in Objective-C 2.0 (Developer's Library Series)

3.9 38
by Stephen G. Kochan
     
 

View All Available Formats & Editions

THE #1 BESTSELLING BOOK ON OBJECTIVE-C 2.0


Programming in Objective-C 2.0 provides the new programmer a complete, step-by-step introduction to Objective-C, the primary language used to develop applications for the iPhone, iPad, and Mac OS X platforms.

 

The book does not assume

Overview

THE #1 BESTSELLING BOOK ON OBJECTIVE-C 2.0


Programming in Objective-C 2.0 provides the new programmer a complete, step-by-step introduction to Objective-C, the primary language used to develop applications for the iPhone, iPad, and Mac OS X platforms.

 

The book does not assume previous experience with either C or object-oriented programming languages, and it includes many detailed, practical examples of how to put Objective-C to use in your everyday iPhone/iPad or Mac OS X programming tasks.


A powerful yet simple object-oriented programming language that’s based on the C programming language, Objective-C is widely available not only on OS X and the iPhone/iPad platform but across many operating systems that support the gcc compiler, including Linux, Unix, and Windows systems.

 

The second edition of this book thoroughly covers the latest version of the language, Objective-C 2.0. And it shows not only how to take advantage of the Foundation framework’s rich built-in library of classes but also how to use the iPhone SDK to develop programs designed for the iPhone/iPad platform.

 

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

Part 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

Part III: Cocoa and the iPhone SDK

  20    Introduction to Cocoa 

  21    Writing iPhone Applications

Part IV: Appendixes

  A    Glossary

  B    Objective-C 2.0 Language Summary

  C    Address Book Source Code

  D    Resources


Product Details

ISBN-13:
9780321605542
Publisher:
Pearson Education
Publication date:
12/29/2008
Series:
Developer's Library
Sold by:
Barnes & Noble
Format:
NOOK Book
Pages:
624
File size:
21 MB
Note:
This product may take a few minutes to download.

Read an Excerpt

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

Meet the Author

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

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >

Programming in Objective-C 2.0 3.9 out of 5 based on 0 ratings. 38 reviews.
Anonymous More than 1 year ago
I have also purchased Beginning iPhone Development: Exploring the iPhone SDK by Dave Mark, Jeff LaMarche which began me on my iPhone development road but when I realized that I needed a bit more C knowledge I purchased this book and it has satisfied my needs. It is definitely for beginners but I believe professionals might be able to get some good information out of it too. I am just a beginner, new to C and xcode and this book helped me get to know both of these a lot better. I would highly recommend this to anyone looking into iPhone development or xcode development.
Doc-Ahmed More than 1 year ago
I Started reading the book right from the first page. It was really clear and detailed. Great way of building the principles step by step. You can be a real professional wit objective-C if you would do all the exercises in the book. One recommendation to mention though: TAKE NOTES WHILE YOU ARE GOING THROUGH IT, so that you can link ideas together.
INDEPENDENTREVIEWER More than 1 year ago
Do you know how to program in Objective-C 2.0? If you don't, then this book is for you! Author by Stephen G. Kochan, has done an outstanding job of writing a book that texhes Objective-C by example.


Author Kochan, begins by showing you how to write your first program in Objective-C. Then, the author covers the fundamentals of object-oriented programming. Next, he describes the basic Objective-C data types and how to use them in your programs. The author also introduces you to the three looping statements you can use in your programs: for, while and do. He continues by covering the Objective-C language's if and switch statements in detail. Then, the author delves more deeply into working with classes and objects. Next, he introduces the key concept of inheritance. The author also discusses three fundamental characteristics of the Objective-C language. He continues by rounding out the discussion on the Objective-C language by covering such issues as initialization of objects, protocols, categories, the preprocessor, and some of the underlying C features, including functions, arrays, structures, and pointers. Then, the author gives an introduction to the Foundation framework and how to access its documentation. Next, he covers the important features of the Foundation framework. He also gives you an overview of the Application Kit that provides the classes you need to develop sophisticated graphical applications on the MAC. Finally, the author illustrates a step-by-step approach to writing a simple iPhone application, followed by a calculator application that enables you to use your iPhone to perform simple arithmetic calculations with fractions.


This most excellent book teaches you the essentials of the Objective-C 2.0 language. Perhaps more importantly, this great book teaches you how to use the rich assortment of predefined classes that form the Foundation framework.
Anonymous More than 1 year ago
It is a good intro. However it would be great if the author did not dismiss advanced topics as `too advanced'. He could at least put a clarifying example to what the advanced topic does instead of insulting the reader's intelligence.
Stowellomite More than 1 year ago
This book is like a Rosetta Stone for folks that have never programed before. So many try to assume some experience in the field with C but Steve does not and instead gets you comfortable with the world of programming before he gets into the C it is based on. My only grip would be that Chapter 4 came a little later in the book and included the tables you need to under stand how they are building things like shifts. If you don't get it just skip it our visit Steve's site classroomm.com for further clarification. Otherwise this is a great book that really helped me to understand object oriented programming from the ground up. I have always been one of those folks that likes to have everything explained to him and Steve does a great job of that and if you have a question he actually answers you from his website!!! It really does not get much better then that.
Anonymous More than 1 year ago
If you're new to programming or have a minor background in programming, this book is for you.
Clsid More than 1 year ago
I have to say that I haven't read too many books on the subject but I have read a lot of programming books before, and none match the simplicity that this book offer. Highly recommended for Objective-C learners but beware, as of Xcode 4.6, which is what I'm using, the examples in the Cocoa are outdated and you will have a hard time figuring out how to adapt them. I am considering getting another book precisely because of this, maybe even from the same author, since he has Programming in Objective-C Fifth edition. But for pure Objective-C development this book is a must.
Anonymous More than 1 year ago
Roger Clary More than 1 year ago
If you are looking for a concise and direct path, as was I, to creating Cocoa programs for the Mac and iOS apps for the iPad/iPhone, this is not the correct book. Following the examples, you will be only writing console apps until the last chapter. Only there will you get a brief intro to Cocoa with no instruction and very limited instruction in iPhone programming. I suspect this was published before the appearance of the iPad. Entering the examples in XCode 4, many functions were labeled by XCode as deprecated. This book is in dire need of an update.
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Brian_Connors More than 1 year ago
Now, strictly speaking, the original definitive book on Objective C is Brad Cox's book, but it's vastly outdated, based on the original ICpak API and not the standard-since-1995 FoundationKit. But Cox doesn't have much to do with his baby these days, and Apple's ebooks on the language, while required reading, tend only to define the language in terms of its extensions to C. There are other books, but this one seems to be the closest thing available to a cross-platform Objective C book. (Kochan did make a deliberate choice for the second edition to focus on Xcode 3 as the development environment, but GNUSTEP's ProjectCenter is just similar enough that translating between the two is easier than you'd think.) I might have brought in the FoundationKit earlier; it's the de facto standard library for Objective-C, and as Bjarne Stroustrup has pointed out, standard libraries are there to be used. I'm also a bit mystified at the choice of iOS rather than Mac OS X as the host OS for the Fraction Calculator project in the GUI section of the book; the only thing that comes to mind is that an iOS app is likely to be somewhat easier to wire up and has a wider market, but at the same time Cocoa Touch has no direct equivalent on GNUSTEP or Cocotron. I can see both sides on this one, but I still think desktop Cocoa would have been a better choice. Overall, though, this is probably the first book to buy. You'll want to supplement it with the OPENSTEP spec or the Apple Foundation and AppKit documentation, but with the exception of the blocks construct introduced in Snow Leopard, this book tells you pretty much everything you need to get started. Now, knowing that the third edition is coming out in a couple of months, should you wait? I'd say probably not. The addition of blocks is theoretically a big deal, but you can pick the basics up from the Apple docs.
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago