Skip to:Content
|
Bottom
Cover image for Objective-C for iPhone developers : a beginner's guide
Title:
Objective-C for iPhone developers : a beginner's guide
Personal Author:
Publication Information:
New York : McGraw-Hill, c2010
Physical Description:
xviii, 365 p. : ill. ; 23 cm.
ISBN:
9780071703284

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
35000000016750 QA76.73.O115 B73 2010 Open Access Book Gift Book
Searching...
Searching...
30000010274586 QA76.73.O115 B73 2010 Open Access Book Book
Searching...
Searching...
33000000014810 QA76.73.O115 B73 2010 Open Access Book Gift Book
Searching...

On Order

Summary

Summary

Publisher's Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality,authenticity, or access to any online entitlements included with the product.

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


Author Notes

James A. Brannan is a registered iPhone developer and creator of several iPone 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. Instructional videos can be viewed at the author's website, www.jamesabrannan.com.


Table of Contents

Acknowledgmentsp. xi
Introductionp. xiii
1 Exploring the iPhone SDK and Basic Programmingp. 1
Downloading the SDKp. 3
Documentation and Getting Helpp. 5
SDK Documentationp. 5
Apple's Online Documents and Forumsp. 6
Googlep. 6
Wikipediap. 6
The iPhone Dev SDK Forump. 7
Basic Programming Concepts Using Cp. 10
A Simple C Programp. 10
Variablesp. 12
Functionsp. 13
Objective-C's Main Methodp. 15
Header Files and Source Filesp. 18
Pointersp. 21
Xcode Fundamentalsp. 21
Configuring Xcode's Displayp. 23
Exploring Xcode Furtherp. 26
2 Primitive Data Types and Operatorsp. 27
Primitive Data Typesp. 28
Numeric Types: Integersp. 29
Numeric Types: Float and Doublep. 33
Charactersp. 35
The BOOL Data Typep. 36
Operatorsp. 36
Arithmetic Operatorsp. 36
Unary Operatorsp. 38
Equality and Logical Operatorsp. 39
Assignment Operatorsp. 40
Data Type Conversionsp. 41
The UIWindow Application Templatep. 42
3 Flow Control Statements, Arrays, and Structuresp. 47
Boolean Expressionsp. 49
Loopingp. 50
The For Loopp. 50
The While Loopp. 51
The Do While Loopp. 52
True or False and BOOLp. 56
Conditional Statementsp. 56
The If Statementp. 57
The If Else Structurep. 59
The If Else If Else Structurep. 59
The Switch Statementp. 61
The Break and Continue Statementsp. 64
Arrays and Structuresp. 65
Arraysp. 66
The Struct Keywordp. 68
The UIViewController's Life-Cycle Methodsp. 71
4 Classes, Objects, and Messagingp. 75
Object-Oriented Programming vs. Procedural Programmingp. 77
Procedural Programmingp. 77
Object-Oriented Programming: Classes and Objectsp. 79
Object-Oriented Analysisp. 81
Classes and Objectsp. 82
Objective-C Classesp. 83
The @interfacep. 83
The @implementationp. 84
Object-Oriented Programming: Behaviorp. 84
Class Interactionp. 85
The @class Directivep. 90
Methods and Messagingp. 95
Class and Instance Methodsp. 96
Allocating and Initializing Objectsp. 99
Initializing Objectsp. 100
Writing Custom Initializersp. 100
Multiple Argument Methodsp. 103
5 Memory Management and Propertiesp. 111
Memory Managementp. 112
Manual Memory Managementp. 113
Encapsulation and Memory Managementp. 121
Propertiesp. 125
Declaring Propertiesp. 125
Dot Notationp. 126
Property Attributesp. 127
Ownership and Properties Revisitedp. 131
Autorelease and Poolsp. 132
Autorelease and Custom Classesp. 133
IBOutlet and Interface Builderp. 138
Deallocating and Nil Revisitedp. 143
6 Inheritancep. 145
Inheritancep. 146
Inheritance Explainedp. 146
Ancestry Inheritancep. 156
Inheriting Propertiesp. 156
Extensionp. 159
Overriding Methodsp. 162
Replacing a Parent's Methodp. 162
Extending a Parent's Methodp. 163
No Overriding Instance Variables and No Overloadingp. 166
No Overriding Instance Variablesp. 167
No Method Overloadingp. 167
Inheritance and UIViewControllerp. 168
7 Protocols and Categoriesp. 173
Protocolsp. 174
Modeling Protocolsp. 175
Syntaxp. 175
Adopting a Protocolp. 176
Properties and Protocolsp. 186
Optional Methodsp. 188
Protocols and idp. 192
Adopting Multiple Protocolsp. 193
Extending Protocolsp. 197
Protocols and Delegates in UIKitp. 201
Categoriesp. 207
Categories Explainedp. 208
8 Some Foundation Framework Classesp. 213
NSString and NSMutableStringp. 215
NSNumberp. 220
NSDate and NSDateFormatterp. 222
Collectionsp. 224
NSArray and NSMutableArrayp. 224
NSEnumerator and Fast Enumerationp. 228
NSDictionary and NSMutableDictionaryp. 231
9 File Handlingp. 237
iPhone Directoriesp. 238
NSHomeDirectoryp. 239
NSSearchPathForDirectoriesInDomainsp. 239
NSTemporaryDirectoryp. 240
NSBundlep. 240
File Handlingp. 241
NSFileManagerp. 241
NSString, Paths, and Text Filesp. 248
NSDatap. 254
10 Property Lists, NSCopy, and Archivingp. 265
Property Listsp. 266
Writing a Property Listp. 267
Reading a Property Listp. 268
Archivingp. 278
NSCoding Protocolp. 279
NSKeyedArchiver and NSKeyedUnarchiverp. 279
11 Selectors and Targetsp. 295
Selectorsp. 296
Delaying a Selector or Running in Backgroundp. 300
Notificationsp. 301
Delegatesp. 307
Target-Actionp. 311
12 The Model-View-Controller Design Patternp. 315
The Model-View-Controller Design Patternp. 316
Persistencep. 324
Multiple Xibsp. 328
Indexp. 353
Go to:Top of Page