__Objective-C Recipes__ provides a problem solution approach for dealing with key aspects of Objective-C programming, ensuring you have the indispensable reference you need to successfully execute common programming tasks. You will see how to use the unique features of the Objective-C programming language, the helpful features of the Foundation framework, and the benefits of using Objective-J as an alternative. Solutions are available for a range of problems, including: * Application development with Xcode * Working with strings, numbers and object collections * Using foundation classes like NSArray, NSString, NSData and more * Dealing with threads, multi-core processing and asynchronous processing * Building applications that take advantage of dates and timers and memory management * How to use Objective-C on other platforms __Objective-C Recipes__ is an essential reference for every Objective-C programmer, and offers solutions in a concise and easy-to-follow manner. Matthew Campbell has trained over 800 new iOS developers at the Mobile App Mastery Institute and iOS Code Camp, and here brings his expertise to offer you the ability to use and exploit Objective-C to get the most out of all of your projects. Title Page......Page 2 Copyright Page......Page 3 Contents at a Glance......Page 4 Table of Contents......Page 5 About the Author......Page 21 About the Technical Reviewer......Page 22 Acknowledgments......Page 23 Prefance......Page 24 Chapter 1: Application Development......Page 25 How It Works......Page 26 Usage......Page 27 How It Works......Page 28 The Code......Page 29 Usage......Page 30 How It Works......Page 31 The Code......Page 32 How It Works......Page 33 The Code......Page 35 Usage......Page 36 How It Works......Page 37 The Code......Page 38 How It Works......Page 39 The Code......Page 40 How It Works......Page 41 Solution......Page 42 The Code......Page 43 Usage......Page 44 App Delegate......Page 45 Application......Page 46 The Code......Page 47 Usage......Page 48 How It Works......Page 49 The Code......Page 50 Usage......Page 51 Problem......Page 53 How It Works......Page 54 The Code......Page 56 Problem......Page 57 How It Works......Page 58 The Code......Page 61 Usage......Page 62 Solution......Page 63 How It Works......Page 64 The Code......Page 65 Usage......Page 66 Problem......Page 67 How It Works......Page 68 The Code......Page 69 Usage......Page 70 Chapter 2: Working With Strings and Numbers......Page 72 How It Works......Page 73 The Code......Page 74 How It Works......Page 75 The Code......Page 76 How It Works......Page 77 Usage......Page 79 How It Works......Page 80 Problem......Page 82 How It Works......Page 83 The Code......Page 84 Usage......Page 85 How It Works......Page 86 The Code......Page 87 Solution......Page 88 How It Works......Page 89 The Code......Page 90 Problem......Page 91 The Code......Page 92 Solution......Page 93 How It Works......Page 94 Usage......Page 96 The Code......Page 97 Solution......Page 98 The Code......Page 99 How It Works......Page 100 The Code......Page 101 Usage......Page 102 Chapter 3:Working with Object Collections......Page 103 How It Works......Page 104 The Code......Page 105 Problem......Page 106 The Code......Page 107 How It Works......Page 108 Solution......Page 109 How It Works......Page 110 The Code......Page 111 Solution......Page 112 How It Works......Page 113 The Code......Page 114 Solution......Page 117 How It Works......Page 118 The Code......Page 120 How It Works......Page 122 The Code......Page 123 Usage......Page 125 How It Works......Page 126 Usage......Page 127 The Code......Page 128 Solution......Page 129 How It Works......Page 130 The Code......Page 131 How It Works......Page 132 Usage......Page 133 The Code......Page 134 How It Works......Page 135 The Code......Page 136 How It Works......Page 137 The Code......Page 138 Solution......Page 139 The Code......Page 140 Problem......Page 141 The Code......Page 142 How It Works......Page 143 The Code......Page 144 How It Works......Page 145 Solution......Page 146 The Code......Page 147 Usage......Page 148 How It Works......Page 149 Usage......Page 150 How It Works......Page 151 Usage......Page 152 Solution......Page 153 The Code......Page 154 Solution......Page 155 How It Works......Page 156 The Code......Page 157 Solution......Page 158 How It Works......Page 159 The Code......Page 160 Usage......Page 161 How It Works......Page 162 Usage......Page 164 How It Works......Page 165 Usage......Page 166 Solution......Page 167 How It Works......Page 168 The Code......Page 169 Usage......Page 170 How It Works......Page 171 The Code......Page 172 Solution......Page 174 The Code......Page 175 How It Works......Page 177 The Code......Page 178 Usage......Page 179 How It Works......Page 180 The Code......Page 184 Usage......Page 186 How It Works......Page 187 The Code......Page 190 Usage......Page 191 How It Works......Page 192 The Code......Page 195 Usage......Page 198 Problem......Page 200 Usage......Page 201 How It Works......Page 202 The Code......Page 203 How It Works......Page 204 The Code......Page 206 How It Works......Page 208 Usage......Page 209 How It Works......Page 210 Usage......Page 211 How It Works......Page 212 Usage......Page 213 How It Works......Page 214 The Code......Page 215 Usage......Page 216 Chapter 6: Asynchronous Processing......Page 217 How It Works......Page 218 Autorelease......Page 219 The Code......Page 220 Usage......Page 223 How It Works......Page 224 The Code......Page 229 Usage......Page 231 How It Works......Page 232 The Code......Page 234 Problem......Page 237 How It Works......Page 238 The Code......Page 239 Usage......Page 241 Problem......Page 242 How It Works......Page 243 The Code......Page 247 Usage......Page 249 How It Works......Page 250 The Code......Page 252 Problem......Page 255 How It Works......Page 256 The Code......Page 258 Usage......Page 261 Solution......Page 262 The Code......Page 263 Problem......Page 264 How It Works......Page 265 How XML Parsing Works......Page 266 The Code......Page 270 Usage......Page 271 Solution......Page 272 JSON Parsing......Page 273 The Code......Page 274 Usage......Page 275 How It Works......Page 276 The Code......Page 278 Usage......Page 279 Solution......Page 280 Object Ownership......Page 281 Automatic Reference Counting (ARC)......Page 282 Memory Management Options......Page 283 How It Works......Page 284 The Code......Page 285 How It Works......Page 286 The Code......Page 288 How It Works......Page 289 Strong Property References......Page 290 The dealloc Method......Page 291 The Code......Page 292 Usage......Page 293 How It Works......Page 294 The Code......Page 296 Solution......Page 299 How It Works......Page 300 Entity......Page 301 The Object Graph......Page 302 Working with an Object Graph......Page 303 The Code......Page 310 Usage......Page 314 How It Works......Page 315 Getting Property Values......Page 316 Setting Property Values......Page 317 The Code......Page 318 Usage......Page 322 How It Works......Page 323 The Code......Page 324 Usage......Page 328 Problem......Page 329 How It Works......Page 330 The Code......Page 331 Usage......Page 335 How It Works......Page 336 The Code......Page 338 How It Works......Page 341 The Code......Page 344 Usage......Page 347 NSCoding......Page 348 The Code......Page 350 Usage......Page 355 Chapter 10: Core Data......Page 357 Link to Core Data Framework......Page 358 Adding the Core Data Stack......Page 360 The Code......Page 364 Problem......Page 366 How It Works......Page 367 The Code......Page 369 How It Works......Page 370 The Code......Page 372 How It Works......Page 375 The Code......Page 376 Usage......Page 379 How It Works......Page 380 The Code......Page 381 Usage......Page 385 How It Works......Page 386 The Code......Page 387 Usage......Page 392 How It Works......Page 393 The Code......Page 398 Usage......Page 402 How It Works......Page 403 The Code......Page 409 Problem......Page 415 How It Works......Page 416 The Code......Page 419 Usage......Page 426 Solution......Page 427 How It Works......Page 428 How It Works......Page 430 Usage......Page 433 How It Works......Page 434 Usage......Page 435 How It Works......Page 436 index.html......Page 437 AppController.j......Page 438 The Code......Page 440 Usage......Page 441 How It Works......Page 442 The Code......Page 444 Usage......Page 445 Index......Page 446
Objective-C Recipes provides a problem solution approach for dealing with key aspects of Objective-C programming, ensuring you have the indispensable reference you need to successfully execute common programming tasks. You will see how to use the unique features of the Objective-C programming language, the helpful features of the Foundation framework, and the benefits of using Objective-J as an alternative. Solutions are available for a range of problems, including:
- Application development with Xcode
- Working with strings, numbers and object collections
- Using foundation classes like NSArray, NSString, NSData and more
- Dealing with threads, multi-core processing and asynchronous processing
- Building applications that take advantage of dates and timers and memory management
- How to use Objective-C on other platforms
Objective-C Recipes is an essential reference for every Objective-C programmer, and offers solutions in a concise and easy-to-follow manner. Matthew Campbell has trained over 800 new iOS developers at the Mobile App Mastery Institute and iOS Code Camp, and here brings his expertise to offer you the ability to use and exploit Objective-C to get the most out of all of your projects.
What you’ll learn
- What strings and arrays are, and how to use them
- How to manage your data effectively
- How to build and work with dictionaries, dates and times, timers and localization
- How to deal with threads, multi-core processing and asynchronous processing
- How to utilize Cocoa and core frameworks for user interfaces and experience design and development
- How to access and work with iOS SDK for iPhone and iPad apps design and development
Who this book is for This book is for iOS, OS X as well as general Objective-C language programmers and users who want straightforward methods to do essential programming tasks in Objective-C.
Table of Contents1. Application Development With XCode
2. Working With Strings And Numbers
3. Working With Object Collections
4. File System
5. Dates And Timers
6. Threads, Multi-Core Processing and Asynchronous Processing
7. Consuming Web Services
8. Memory Management
9. Dealing With Your Object Graph
10. Core Data
11. Using Objective-C On Other Platforms
Annotation Objective-C Recipesprovides a problem solution approach for dealing with key aspects of Objective-C programming, ensuring you have the indispensable reference you need to successfully execute common programming tasks. You will see how to use the unique features of the Objective-C programming language, the helpful features of the Foundation framework, and the benefits of using Objective-J as an alternative. Solutions are available for a range of problems, including:Application development with XcodeWorking with strings, numbers and object collectionsUsing foundation classes like NSArray, NSString, NSData and moreDealing with threads, multi-core processing and asynchronous processingBuilding applications that take advantage of dates and timers and memory managementHow to use Objective-C on other platformsObjective-C Recipesis an essential reference for every Objective-C programmer, and offers solutions in a concise and easy-to-follow manner. Matthew Campbell has trained over 800 new iOS developers at the Mobile App Mastery Institute and iOS Code Camp, and here brings his expertise to offer you the ability to use and exploit Objective-C to get the most out of all of your projects. What youll learnWhat strings and arrays are, and how to use themHow to manage your data effectivelyHow to build and work with dictionaries, dates and times, timers and localizationHow to deal with threads, multi-core processing and asynchronous processingHow to utilize Cocoa and core frameworks for user interfaces and experience design and developmentHow to access and work with iOS SDK for iPhone and iPad apps design and developmentWho this book is forThis book is for iOS, OS X as well as general Objective-C language programmers and users who want straightforward methods to do essential programming tasks in Objective-C. Table of Contents1. Application Development With XCode2. Working With Strings And Numbers3. Working With Object Collections4. File System5. Dates And Timers6. Threads, Multi-Core Processing and Asynchronous Processing7. Consuming Web Services8. Memory Management9. Dealing With Your Object Graph10. Core Data11. Using Objective-C On Other Platforms