Sign in
|
Register
|
Mobile
Home
Browse
About us
Help/FAQ
Advanced search
Home
>
Browse
>
Beginner's Guide
>
Objective-C for iPhone Developers, A Beginner's Guide
CITATION
Brannan, James
.
Objective-C for iPhone Developers, A Beginner's Guide
.
US
: McGraw-Hill Osborne Media, 2010.
Add to Favorites
Email to a Friend
Download Citation
Objective-C for iPhone Developers, A Beginner's Guide
Authors:
James Brannan
Published:
May 2010
eISBN:
9780071703291 0071703292
|
ISBN:
9780071703284
Open eBook
Book Description
Table of Contents
Contents
Acknowledgments
Introduction
1 Exploring the iPhone SDK and Basic Programming
Downloading the SDK
Documentation and Getting Help
SDK Documentation
Apple’s Online Documents and Forums
Google
Wikipedia
The iPhone Dev SDK Forum
Basic Programming Concepts Using C
A Simple C Program
Variables
Functions
Objective-C’s Main Method
Header Files and Source Files
Pointers
Xcode Fundamentals
Configuring Xcode’s Display
Exploring Xcode Further
2 Primitive Data Types and Operators
Primitive Data Types
Numeric Types: Integers
Numeric Types: Float and Double
Characters
The BOOL Data Type
Operators
Arithmetic Operators
Unary Operators
Equality and Logical Operators
Assignment Operators
Data Type Conversions
The UIWindow Application Template
3 Flow Control Statements, Arrays, and Structures
Boolean Expressions
Looping
The For Loop
The While Loop
The Do While Loop
True or False and BOOL
Conditional Statements
The If Statement
The If Else Structure
The If Else If Else Structure
The Switch Statement
The Break and Continue Statements
Arrays and Structures
Arrays
The Struct Keyword
The UIViewController’s Life-Cycle Methods
4 Classes, Objects, and Messaging
Object-Oriented Programming vs. Procedural Programming
Procedural Programming
Object-Oriented Programming: Classes and Objects
Object-Oriented Analysis
Classes and Objects
Objective-C Classes
The @interface
The @implementation
Object-Oriented Programming: Behavior
Class Interaction
The @class Directive
Methods and Messaging
Class and Instance Methods
Allocating and Initializing Objects
Initializing Objects
Writing Custom Initializers
Multiple Argument Methods
5 Memory Management and Properties
Memory Management
Manual Memory Management
Encapsulation and Memory Management
Properties
Declaring Properties
Dot Notation
Property Attributes
Ownership and Properties Revisited
Autorelease and Pools
Autorelease and Custom Classes
IBOutlet and Interface Builder
Deallocating and Nil Revisited
6 Inheritance
Inheritance
Inheritance Explained
Ancestry Inheritance
Inheriting Properties
Extension
Overriding Methods
Replacing a Parent’s Method
Extending a Parent’s Method
No Overriding Instance Variables and No Overloading
No Overriding Instance Variables
No Method Overloading
Inheritance and UIViewController
7 Protocols and Categories
Protocols
Modeling Protocols
Syntax
Adopting a Protocol
Properties and Protocols
Optional Methods
Protocols and id
Adopting Multiple Protocols
Extending Protocols
Protocols and Delegates in UIKit
Categories
Categories Explained
8 Some Foundation Framework Classes
NSString and NSMutableString
NSNumber
NSDate and NSDateFormatter
Collections
NSArray and NSMutableArray
NSEnumerator and Fast Enumeration
NSDictionary and NSMutableDictionary
9 File Handling
iPhone Directories
NSHomeDirectory
NSSearchPathForDirectoriesInDomains
NSTemporaryDirectory
NSBundle
File Handling
NSFileManager
NSString, Paths, and Text Files
NSData
10 Property Lists, NSCopy, and Archiving
Property Lists
Writing a Property List
Reading a Property List
Archiving
NSCoding Protocol
NSKeyedArchiver and NSKeyedUnarchiver
11 Selectors and Targets
Selectors
Delaying a Selector or Running in Background
Notifications
Delegates
Target-Action
12 The Model-View-Controller Design Pattern
The Model-View-Controller Design Pattern
Persistence
Multiple Xibs
Index