It's simple: you need to know how to work with the bash shell if you want to get to the heart of Mac OS X, Linux, and other Unix systems. Updated for the most recent version of bash, this concise little book puts all of the essential information about bash at your fingertips. You'll quickly find ans
Objective-C Description based on print version record. - Includes index
โ Scribed by Holzner, Steven
- Publisher
- Peachpit Press
- Year
- 2010
- Tongue
- English
- Leaves
- 241
- Series
- Visual quickstart guide
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
Objective C 2.0 is the object-oriented language that is the basis for Cocoa and Cocoa Touch, the development environment for the iPhone/iPod Touch. You'll learn all the basics: from handling data and creating functions to managing memory and handling exceptions. For programmers who want to develop iPhone apps, it's a must, and this title in the Visual QuickStart-style is the easy, fast way to get started.
โฆ Table of Contents
Cover......Page 1
Table of Contents......Page 5
Introduction......Page 9
Chapter 1: Getting Started: Essential Objective-C......Page 10
Creating Your First Program......Page 12
Compiling and Running Your First Program......Page 15
Using Variables......Page 17
Displaying Values in Variables......Page 18
Working with Data Types......Page 20
Adding Comments......Page 22
Using Arithmetic Operators......Page 24
Using Assignment Operators......Page 26
Using the Increment and Decrement Operators......Page 28
Changing Type with Cast Operators......Page 30
Chapter 2: Directing Program Flow......Page 32
Using the if Statement......Page 35
Using the else Statement......Page 36
Using the switch Statement......Page 38
Using Comparison Operators......Page 40
Using Logical Operators......Page 41
Using the Conditional Operator......Page 42
Using the for Loop......Page 44
Using the while Loop......Page 46
Using the do...while Loop......Page 48
Using the break Statement......Page 50
Chapter 3: Handling Data......Page 52
About Creating NS-Class Objects......Page 54
Creating Arrays......Page 55
Initializing Arrays......Page 56
Looping over Arrays......Page 57
Creating Two-Dimensional Arrays......Page 58
Using Pointers......Page 60
Using Pointer Math......Page 61
Interchanging Pointers and Arrays......Page 62
Using Strings......Page 63
Passing Messages to String Objects......Page 65
Using Enumerations......Page 66
Chapter 4: Creating Functions......Page 68
Defining a Function......Page 70
Declaring Functions Using Prototypes......Page 71
Passing Arguments to Functions......Page 73
Returning Values from Functions......Page 75
Using Function Scope......Page 77
Passing Pointers to Functions......Page 79
Passing Arrays to Functions......Page 81
Passing Constant Data to Functions......Page 83
Using Recursion......Page 85
Using Pointers to Functions......Page 86
Chapter 5: Classes and Objects......Page 88
Creating Objective-C Classes and Objects......Page 91
Using Class Methods......Page 93
Creating an Object......Page 95
Creating Object Methods......Page 96
Storing Data in Objects......Page 97
Passing Multiple Arguments to Methods......Page 99
Storing the Interface in a Header File......Page 101
Adding the Implementation to the Header File......Page 103
Linking Multiple Files......Page 104
Using Constructors......Page 106
Chapter 6: Object-Oriented Programming......Page 108
About Access Specifiers......Page 109
Using Public Access......Page 111
Using Private Access......Page 112
Using Protected Access......Page 114
Using Class Variables......Page 116
Accessing the Current Object......Page 118
Creating a Variable for Multiple Object Types......Page 120
Verifying That an Object Belongs to a Class......Page 122
Checking an Object's Class with isKindOfClass......Page 124
Verifying That an Object Supports a Method......Page 126
Checking Whether Objects Support a Method......Page 127
Chapter 7: Working with Object-Oriented Inheritance......Page 128
Inheriting from a Class......Page 130
Inheriting Base-Class Data Members......Page 131
Inheriting Base-Class Methods......Page 133
Overriding Base-Class Methods......Page 135
Overloading Base-Class Methods......Page 137
Using Multi-level Inheritance......Page 139
Limiting Access......Page 141
Restricting Access......Page 143
Using Constructors with Inheritance......Page 145
Using Polymorphism......Page 147
Chapter 8: Categories, Posing, and Protocols......Page 150
About Categories......Page 152
Categories: Creating the Base Class......Page 154
Categories: Creating Categories......Page 155
Categories: Putting It All Together......Page 156
About Posing......Page 158
Posing: Creating the Base Class......Page 160
Posing: Creating the Derived Class......Page 161
Posing: Putting It All Together......Page 162
About Protocols......Page 164
Protocols: Defining the Protocol and Interfaces......Page 166
Protocols: Creating the Class Implementations......Page 168
Protocols: Putting It All Together......Page 170
Chapter 9: Using Arrays and Dictionaries......Page 172
Creating an Array......Page 174
Accessing Array Elements......Page 175
Using Enumeration to Loop over an Array......Page 176
Creating a Mutable Array......Page 178
Adding Elements to a Mutable Array......Page 180
Sorting an Array......Page 182
Releasing Array Memory......Page 184
Creating a Dictionary......Page 185
Enumerating a Dictionary......Page 187
Creating a Mutable Dictionary......Page 189
Adding Objects to a Mutable Dictionary......Page 190
Chapter 10: Managing Memory in Objective-C......Page 192
Creating Test Objects......Page 194
Displaying the Retain Count......Page 195
Incrementing an Objectโs Retain Count......Page 197
Decrementing an Objectโs Retain Count......Page 199
Deallocating Objects from Memory......Page 201
Using an Autorelease Pool......Page 203
Using Self-Managed Memory......Page 204
Deallocating Memory Yourself: Creating the Class......Page 206
Deallocating Memory Yourself: Storing Internal Objects......Page 207
Deallocating Memory Yourself: Creating the main Method......Page 209
Deallocating Memory Yourself: Performing Deallocation......Page 210
Chapter 11: Exception Handling......Page 212
Catching Exceptions......Page 214
Handling Exceptions......Page 215
Using the End Handler......Page 216
Creating an Exception......Page 218
Checking What Exception Occurred......Page 220
Handling Multiple Exceptions......Page 222
Passing Exceptions Up the Call Stack......Page 224
Returning Values from Exception Handlers......Page 226
Returning void from an Exception Handler......Page 228
Catching Uncaught Exceptions......Page 230
A......Page 232
C......Page 233
E......Page 234
H......Page 235
M......Page 236
O......Page 237
P......Page 238
X......Page 240
๐ SIMILAR VOLUMES
"WordPress is so flexible that developers are now tapping it to create robust applications for content, contact, and e-mail management. Whether you're a casual blogger or programming pro, this comprehensive guide covers WordPress from the basics through advanced application development. Learn how to
A complete introduction for beginners to Sun's powerful JavaFX scripting languageJavaFX is a scripting language which provides built-in properties for manipulating objects within a 2D coordinate system. A competing technology to Microsoft's Silverlight, JavaFX provides the tools to fill and pen stro
The fast and easy way to ace your statics course Does the study of statics stress you out? Does just the thought of mechanics make you rigid? Thanks to this book, you can find balance in the study of this often-intimidating subject and ace even the most challenging university-level courses. Statics
Master the basics of data centers to build server farms that enhance your Web site performance<br /><br />Learn design guidelines that show how to deploy server farms in highly available and scalable environments Plan site performance capacity with discussions of server farm architectures and their
"Mario Hewardt's<i>Advanced .NET Debugging</i>is an excellent resource for both beginner and experienced developers working with .NET. The book is also packed with many debugging tips and discussions of CLR internals, which will benefit developers architecting software."<i>-Jeffrey Richter, consulta