Objective-C for iPhone Developers, A Beginner's Guide

Overview

Essential Skills--Made Easy!

Create your own iPhone and Mac OS X applications with ease. Objective-C for iPhone Developers: A Beginner's Guide shows you how to use the Objective-C programming language, Apple's Foundation framework, the iPhone SDK, and the Xcode development environment. The first stop for aspiring iPhone developers, this hands-on guide teaches you how to create versatile, innovative, and marketable apps in no time. Real-world examples throughout the book ...

See more details below
Paperback
$32.81
BN.com price
(Save 17%)$39.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (12) from $4.42   
  • New (6) from $21.45   
  • Used (6) from $4.42   
Objective-C for iPhone Developers, A Beginner's Guide

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$39.99
BN.com price

Overview

Essential Skills--Made Easy!

Create your own iPhone and Mac OS X applications with ease. Objective-C for iPhone Developers: A Beginner's Guide shows you how to use the Objective-C programming language, Apple's Foundation framework, the iPhone SDK, and the Xcode development environment. The first stop for aspiring iPhone developers, this hands-on guide teaches you how to create versatile, innovative, and marketable apps in no time. Real-world examples throughout the book correspond with downloadable Xcode projects and video tutorials so you can get started with your first app right away.

Designed for Easy Learning

  • Key Skills & Concepts--Chapter-opening lists of specific skills covered in the chapter
  • Ask the Expert--Q&A sections filled with bonus information and helpful tips
  • Try This--Hands-on exercises that show you how to apply your skills
  • Notes--Extra information related to the topic being covered
  • Tips--Helpful reminders or alternative ways of doing things
  • Annotated Syntax--Example code with commentary that describes the programming techniques being illustrated

Ready-to-use code at www.mhprofessional.com/computingdownload and www.jamesabrannan.com

Read More Show Less

Product Details

  • ISBN-13: 9780071703284
  • Publisher: McGraw-Hill Professional Publishing
  • Publication date: 5/11/2010
  • Series: Beginner's Guide Series
  • Edition number: 1
  • Pages: 384
  • Sales rank: 1,455,661
  • Product dimensions: 7.20 (w) x 9.00 (h) x 0.90 (d)

Meet the Author

James A. Brannan is a registered iPhone developer and creater of several iPhone apps. He is the author of iPhone SDK Programming: A Beginner's Guide and other books. James has worked as a developer since 1994, using languages from Awk to C to Visual Basic. He is currently an independent iPhone consultant working with several clients. Instructural videos can be viewed at the author's website, www.jamesabrannan.com.

Read More Show Less

Table of Contents

Acknowledgements

Introduction

1 Exploring the iPhone SDK and Basic Programming 1

Downloading the SDK 3

Documentation and Getting Help 5

SDK Documentation 5

Apple's Online Documents and Forums 6

Google 6

Wikipedia 6

The iPhone Dev SDK Forum 7

Basic Programming Concepts Using C 10

A Simple C Program 10

Variables 12

Functions 13

Objective-C's Main Method 15

Header Files and Source Files 18

Pointers 21

Xcode Fundamentals 21

Configuring Xcode's Display 23

Exploring Xcode Further 26

2 Primitive Data Types and Operators 27

Primitive Data Types 28

Numeric Types: Integers 29

Numeric Types: Float and Double 33

Characters 35

The BOOL Data Type 36

Operators 36

Arithmetic Operators 36

Unary Operators 38

Equality and Logical Operators 39

Assignment Operators 40

Data Type Conversions 41

The UIWindow Application Template 42

3 Flow Control Statements, Arrays, and Structures 47

Boolean Expressions 49

Looping 50

The For Loop 50

The While Loop 51

The Do While Loop 52

True or False and BOOL 56

Conditional Statements 56

The If Statement 57

The If Else Structure 59

The If Else If Else Structure 59

The Switch Statement 61

The Break and Continue Statements 64

Arrays and Structures 65

Arrays 66

The Struct Keyword 68

The UIView Controller's Life-Cycle Methods 71

4 Classes, Objects, and Messaging 75

Object-Oriented Programming vs. Procedural Programming 77

Procedural Programming 77

Object-Oriented Programming: Classes and Objects 79

Object-Oriented Analysis 81

Classes and Objects 82

Objective-C Classes 83

The @interface 83

The @implementation 84

Object-Oriented Programming: Behavior 84

Class Interaction 85

The @class Directive 90

Methods and Messaging 95

Class and Instance Methods 96

Allocating and Initializing Objects 99

Initializing Objects 100

Writing Custom Initializers 100

Multiple Argument Methods 103

5 Memory Management and Properties 111

Memory Management 112

Manual Memory Management 113

Encapsulation and Memory Management 121

Properties 125

Declaring Properties 125

Dot Notation 126

Property Attributes 127

Ownership and Properties Revisited 131

Autorelease and Pools 132

Autorelease and Custom Classes 133

IBOutlet and Interface Builder 138

Deallocating and Nil Revisited 143

6 Inheritance 145

Inheritance 146

Inheritance Explained 146

Ancestry Inheritance 156

Inheriting Properties 156

Extension 159

Overriding Methods 162

Replacing a Parent's Method 162

Extending a Parent's Method 163

No Overriding Instance Variables and No Overloading 166

No Overriding Instance Variables 167

No Method Overloading 167

Inheritance and UIView Controller 168

7 Protocols and Categories 173

Protocols 174

Modeling Protocols 175

Syntax 175

Adopting a Protocol 176

Properties and Protocols 186

Optional Methods 188

Protocols and id 192

Adopting Multiple Protocols 193

Extending Protocols 197

Protocols and Delegates in UIKit 201

Categories 207

Categories Explained 208

8 Some Foundation Framework Classes 213

NSString and NSMutableString 215

NSNumber 220

NSDate and NSDateFormatter 222

Collections 224

NSArray and NSMutable Array 224

NSEnumerator and Fast Enumeration 228

NSDictionary and NSMutable Dictionary 231

9 File Handling 237

iPhone Directories 238

NSHome Directory 239

NSSearch Path For Directories In Domains 239

NSTemporary Directory 240

NSBundle 240

File Handling 241

NSFile Manager 241

NSString, Paths, and Text Files 248

NSData 254

10 Property Lists, NSCopy, and Archiving 265

Property Lists 266

Writing a Property List 267

Reading a Property List 268

Archiving 278

NSCoding Protocol 279

NSKeyed Archiver and NSKeyed Unarchiver 279

11 Selectors and Targets 295

Selectors 296

Delaying a Selector or Running in Background 300

Notifications 301

Delegates 307

Target-Action 311

12 The Model-View-Controller Design Pattern 315

The Model-View-Controller Design Pattern 316

Persistence 324

Multiple Xibs 328

Index 353

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)