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 illustratedReady-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
Acknowledgments | p. xi |
Introduction | p. xiii |
1 Exploring the iPhone SDK and Basic Programming | p. 1 |
Downloading the SDK | p. 3 |
Documentation and Getting Help | p. 5 |
SDK Documentation | p. 5 |
Apple's Online Documents and Forums | p. 6 |
p. 6 | |
Wikipedia | p. 6 |
The iPhone Dev SDK Forum | p. 7 |
Basic Programming Concepts Using C | p. 10 |
A Simple C Program | p. 10 |
Variables | p. 12 |
Functions | p. 13 |
Objective-C's Main Method | p. 15 |
Header Files and Source Files | p. 18 |
Pointers | p. 21 |
Xcode Fundamentals | p. 21 |
Configuring Xcode's Display | p. 23 |
Exploring Xcode Further | p. 26 |
2 Primitive Data Types and Operators | p. 27 |
Primitive Data Types | p. 28 |
Numeric Types: Integers | p. 29 |
Numeric Types: Float and Double | p. 33 |
Characters | p. 35 |
The BOOL Data Type | p. 36 |
Operators | p. 36 |
Arithmetic Operators | p. 36 |
Unary Operators | p. 38 |
Equality and Logical Operators | p. 39 |
Assignment Operators | p. 40 |
Data Type Conversions | p. 41 |
The UIWindow Application Template | p. 42 |
3 Flow Control Statements, Arrays, and Structures | p. 47 |
Boolean Expressions | p. 49 |
Looping | p. 50 |
The For Loop | p. 50 |
The While Loop | p. 51 |
The Do While Loop | p. 52 |
True or False and BOOL | p. 56 |
Conditional Statements | p. 56 |
The If Statement | p. 57 |
The If Else Structure | p. 59 |
The If Else If Else Structure | p. 59 |
The Switch Statement | p. 61 |
The Break and Continue Statements | p. 64 |
Arrays and Structures | p. 65 |
Arrays | p. 66 |
The Struct Keyword | p. 68 |
The UIViewController's Life-Cycle Methods | p. 71 |
4 Classes, Objects, and Messaging | p. 75 |
Object-Oriented Programming vs. Procedural Programming | p. 77 |
Procedural Programming | p. 77 |
Object-Oriented Programming: Classes and Objects | p. 79 |
Object-Oriented Analysis | p. 81 |
Classes and Objects | p. 82 |
Objective-C Classes | p. 83 |
The @interface | p. 83 |
The @implementation | p. 84 |
Object-Oriented Programming: Behavior | p. 84 |
Class Interaction | p. 85 |
The @class Directive | p. 90 |
Methods and Messaging | p. 95 |
Class and Instance Methods | p. 96 |
Allocating and Initializing Objects | p. 99 |
Initializing Objects | p. 100 |
Writing Custom Initializers | p. 100 |
Multiple Argument Methods | p. 103 |
5 Memory Management and Properties | p. 111 |
Memory Management | p. 112 |
Manual Memory Management | p. 113 |
Encapsulation and Memory Management | p. 121 |
Properties | p. 125 |
Declaring Properties | p. 125 |
Dot Notation | p. 126 |
Property Attributes | p. 127 |
Ownership and Properties Revisited | p. 131 |
Autorelease and Pools | p. 132 |
Autorelease and Custom Classes | p. 133 |
IBOutlet and Interface Builder | p. 138 |
Deallocating and Nil Revisited | p. 143 |
6 Inheritance | p. 145 |
Inheritance | p. 146 |
Inheritance Explained | p. 146 |
Ancestry Inheritance | p. 156 |
Inheriting Properties | p. 156 |
Extension | p. 159 |
Overriding Methods | p. 162 |
Replacing a Parent's Method | p. 162 |
Extending a Parent's Method | p. 163 |
No Overriding Instance Variables and No Overloading | p. 166 |
No Overriding Instance Variables | p. 167 |
No Method Overloading | p. 167 |
Inheritance and UIViewController | p. 168 |
7 Protocols and Categories | p. 173 |
Protocols | p. 174 |
Modeling Protocols | p. 175 |
Syntax | p. 175 |
Adopting a Protocol | p. 176 |
Properties and Protocols | p. 186 |
Optional Methods | p. 188 |
Protocols and id | p. 192 |
Adopting Multiple Protocols | p. 193 |
Extending Protocols | p. 197 |
Protocols and Delegates in UIKit | p. 201 |
Categories | p. 207 |
Categories Explained | p. 208 |
8 Some Foundation Framework Classes | p. 213 |
NSString and NSMutableString | p. 215 |
NSNumber | p. 220 |
NSDate and NSDateFormatter | p. 222 |
Collections | p. 224 |
NSArray and NSMutableArray | p. 224 |
NSEnumerator and Fast Enumeration | p. 228 |
NSDictionary and NSMutableDictionary | p. 231 |
9 File Handling | p. 237 |
iPhone Directories | p. 238 |
NSHomeDirectory | p. 239 |
NSSearchPathForDirectoriesInDomains | p. 239 |
NSTemporaryDirectory | p. 240 |
NSBundle | p. 240 |
File Handling | p. 241 |
NSFileManager | p. 241 |
NSString, Paths, and Text Files | p. 248 |
NSData | p. 254 |
10 Property Lists, NSCopy, and Archiving | p. 265 |
Property Lists | p. 266 |
Writing a Property List | p. 267 |
Reading a Property List | p. 268 |
Archiving | p. 278 |
NSCoding Protocol | p. 279 |
NSKeyedArchiver and NSKeyedUnarchiver | p. 279 |
11 Selectors and Targets | p. 295 |
Selectors | p. 296 |
Delaying a Selector or Running in Background | p. 300 |
Notifications | p. 301 |
Delegates | p. 307 |
Target-Action | p. 311 |
12 The Model-View-Controller Design Pattern | p. 315 |
The Model-View-Controller Design Pattern | p. 316 |
Persistence | p. 324 |
Multiple Xibs | p. 328 |
Index | p. 353 |