𝔖 Scriptorium
✦   LIBER   ✦

📁

More iPhone 3 Development: Tackling iPhone SDK 3

✍ Scribed by David Mark, Jeff LaMarche


Publisher
Apress
Year
2009
Tongue
English
Leaves
577
Series
Beginning
Edition
1st Edition.
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


If you want to do core data on the iPhone or iPad, this is the book to have. This book devotes a number of chapters on core data and how to create an actual application. It's treatment of core data alone, makes it worth the price.

✦ Table of Contents


More iPhone 3 Development: Tackling iPhone SDK 3
......Page 1
Contents at a Glance......Page 5
Contents......Page 6
About the Authors......Page 13
About the Technical Reviewer......Page 14
Acknowledgements......Page 15
Preface......Page 16
What You Need to Know......Page 18
What You Need Before You Can Begin......Page 19
What’s In this Book......Page 21
Are You Ready?......Page 23
Part 1: Core Data......Page 24
The Anatomy of Core Data......Page 26
Creating a Core Data Template Application......Page 27
Core Data Concepts and Terminology......Page 29
The Data Model and Persistent Store......Page 30
Entities and the Data Model Editor......Page 35
Attributes......Page 36
Relationships......Page 37
Managed Objects......Page 38
Loading Data from the Persistent Store......Page 41
The Fetched Results Controller......Page 43
Will Change Content Delegate Method......Page 46
Did Change Object Delegate Method......Page 47
Did Change Section Delegate Method......Page 52
Putting Everything in Context......Page 56
A Super Start: Adding, Displaying, and Deleting Data......Page 58
Setting up the Xcode Project......Page 59
Creating the Table View Controller......Page 63
Setting up MainWindow.xib......Page 64
Designing the Data Model......Page 67
The Integer Datatypes......Page 73
Setting the Name Attributes’s Type......Page 75
Adding the Rest of the Attributes......Page 76
Creating HeroListViewController......Page 77
Let ‘Er Rip......Page 96
Done, but Not Done......Page 98
The Devil in the Detail View......Page 100
Table-Based vs. Nib-Based Detail Views......Page 101
Detail Editing View Challenges......Page 102
Paired Arrays......Page 104
Representing......Page 106
Formatting of Attributes......Page 109
Creating the Detail View Controller......Page 111
Declaring the Outlet......Page 120
Adding the Instance to MainWindow.xib......Page 121
Pushing the New Instance onto the Stack......Page 122
Adding Editing Subcontrollers......Page 124
Implementing a Selection List......Page 137
Devil’s End......Page 142
Preparing for Change: Migrations and Versioning......Page 144
About Data Models......Page 145
Creating a New Data Model Version......Page 147
The Current Data Model Version......Page 148
Migrations......Page 150
Time to Migrate On......Page 153
Custom Managed Objects......Page 154
Updating the Data Model......Page 157
Creating the Hero Class......Page 160
Tweaking the Hero Header......Page 162
Defaulting......Page 163
Validation......Page 164
Virtual Accessors......Page 168
Adding Validation Feedback......Page 169
Updating ManagedObjectStringEditor......Page 171
Creating the Value Transformer......Page 172
Creating the Color Attribute Editor......Page 175
Displaying the New Attributes in Hero Edit Controller......Page 178
The Display Problem......Page 180
Adding View-Only Support to Hero Edit Controller......Page 182
Color Us Gone......Page 184
Relationships, Fetched Properties, and Expressions......Page 186
Expanding Our Application: Superpowers and Reports......Page 187
Relationships......Page 189
Fetched Properties......Page 195
Creating Relationships and Fetched Properties in the Data Model Editor......Page 196
Adding Relationships and Fetched Properties to the Hero Class......Page 206
The Big Refactor......Page 207
Adding the isNew Method to NSManagedObject......Page 212
Adding the Save and Cancel Buttons......Page 213
Setting Row Indentation......Page 214
The Set Problem......Page 216
Displaying To-Many Sections......Page 218
Updating Row Selection for To-Many Relationships......Page 222
Handling To-Many Inserts and Deletes......Page 226
Using the New Generic Controller......Page 228
Creating the Fetched Property Attribute Controller......Page 233
Cleaning Up Deleted Objects......Page 235
Wonderful to the Core......Page 238
Part 2: Further Explorations......Page 240
Peer-to-Peer Over Bluetooth Using GameKit......Page 242
This Chapter’s Application......Page 243
Network Communication Models......Page 246
The GameKit Session......Page 249
The Peer Picker......Page 254
Creating the Project......Page 256
Setting Up the View Controller Header......Page 259
Designing the Game Board......Page 263
Creating the TicTacToePacket Object......Page 265
Implementing the Tic-Tac-Toe View Controller......Page 269
Trying It Out......Page 285
Game On!......Page 286
This Chapter’s Application......Page 288
Setting Up a Listener......Page 290
Declaring a Socket Context......Page 292
Creating a Socket......Page 293
Bonjour......Page 298
Publishing a Bonjour Service......Page 300
Delegate Methods for Publication......Page 301
Streams......Page 305
Updating Tic-Tac-Toe for Online Play......Page 309
Creating the Peer Browser Files......Page 328
Building the Peer Browser Interface......Page 329
Implementing the Peer Browser View Controller......Page 330
Time to Play......Page 345
Working with Data from the Web......Page 346
Setting Up the Application Skeleton......Page 348
Retrieving Data Using Foundation Objects......Page 353
Retrieving Data Synchronously......Page 356
Retrieving Data Asynchronously......Page 361
Request Types and Form Parameters......Page 367
POST Parameters......Page 369
404 Conclusion Not Found......Page 375
MapKit......Page 376
This Chapter’s Application......Page 377
Overview and Terminology......Page 378
The Map View......Page 379
Converting Degrees to Distance......Page 383
Accommodating Aspect Ratio......Page 384
Region Change Delegate Methods......Page 385
Annotations......Page 386
Reverse Geocoding......Page 390
Building the MapMe Application......Page 392
Go East, Young Programmer......Page 407
This Chapter’s Application......Page 408
The MessageUI Framework......Page 411
Building the MailPic Application......Page 413
Mailing It In…......Page 420
This Chapter’s Application......Page 422
Working with the iPod Library......Page 424
Media Type......Page 426
Nonfilterable Numeric Attributes......Page 428
Retrieving Lyrics......Page 429
Retrieving Media Items......Page 430
Creating Derived Collections......Page 431
Handling Media Picker Selections......Page 435
Specifying the Music Player Controller’s Queue......Page 436
Skipping Tracks......Page 437
Repeat and Shuffle Modes......Page 438
Adjusting the Music Player Controller’s Volume......Page 439
Music Player Controller Notifications......Page 440
Building the Simple Player Application......Page 441
Avast! Rough Waters Ahead!......Page 465
Keeping Your Interface Responsive......Page 468
Exploring the Concurrency Problem......Page 470
Creating the Stalled Application......Page 471
Timers......Page 475
Fixing Stalled with a Timer......Page 477
Operation Queues & Concurrency......Page 485
Race Conditions......Page 486
Mutex Locks and @synchronized......Page 488
Atomicity and Thread Safety......Page 489
Sleepy Time......Page 491
Operation Priority......Page 493
Other Operation State......Page 494
Setting the Maximum Concurrent Operation Count......Page 495
Fixing Stalled with an Operation Queue......Page 496
Updating StalledViewController.m......Page 504
Queue ’em Up......Page 510
Debugging......Page 512
The Debugger......Page 513
The Debugger Editing Pane......Page 517
The Stack Trace......Page 518
The Variable List......Page 519
The Debugging Controls......Page 520
Trying Out the Debug Controls......Page 521
The Breakpoint Window and Symbolic Breakpoints......Page 525
Conditional Breakpoints......Page 526
Breakpoint Actions......Page 528
Working with Breakpoints......Page 530
Calling Functions and Methods......Page 532
Static Analysis......Page 533
Specific Bugs......Page 534
NSZombie......Page 538
GDB: Stopped at Concluding Paragraph......Page 542
Getting Unstuck......Page 544
Farewell......Page 547
¦ A......Page 548
¦ B......Page 549
¦ C......Page 550
¦ D......Page 553
¦ E......Page 555
¦ F......Page 556
¦ H......Page 557
¦ I......Page 558
¦......Page 559
¦ M......Page 560
¦N......Page 564
¦ O......Page 566
¦ P......Page 568
¦ R......Page 569
¦ S......Page 570
¦......Page 573
¦ U......Page 574
¦ V......Page 575
¦ Z......Page 576


📜 SIMILAR VOLUMES


More iPhone 3 Development: Tackling iPho
✍ Dave Mark, Jeff LaMarche (auth.) 📂 Library 📅 2009 🏛 Apress 🌐 English

<p><p>Interested in iPhone development? Want to learn more? Whether you're a self-taught iPhone development genius or have just made your way through the pages of <em>Beginning iPhone 3 Development</em>, we have the perfect book for you.</p><em>More iPhone 3 Development: Tackling iPhone SDK 3</em> d

More iPhone 3 Development: Tackling iPho
✍ Dave Mark, Jeff LaMarche (auth.) 📂 Library 📅 2009 🏛 Apress 🌐 English

<p><p>Interested in iPhone development? Want to learn more? Whether you're a self-taught iPhone development genius or have just made your way through the pages of <em>Beginning iPhone 3 Development</em>, we have the perfect book for you.</p><em>More iPhone 3 Development: Tackling iPhone SDK 3</em> d

More iPhone 3 Development: Tackling iPho
✍ David Mark, Jeff LaMarche 📂 Library 📅 2009 🏛 Apress 🌐 English

I have been searching for a quality iPhone Development book for beginners. There are lots of books on iPhone development available, but it is VERY difficult to find something for real beginners. Obective-C is not HTML and it takes real effort to understand iPhone development. To that end, this book

More iPhone 3 Development: Tackling iPho
✍ David Mark, Jeff LaMarche 📂 Library 📅 2009 🏛 Apress 🌐 English

I have been searching for a quality iPhone Development book for beginners. There are lots of books on iPhone development available, but it is VERY difficult to find something for real beginners. Obective-C is not HTML and it takes real effort to understand iPhone development. To that end, this book

More iPhone 3 Development: Tackling iPho
✍ Dave Mark, Jeff LaMarche 📂 Library 📅 2009 🏛 Apress 🌐 English

Interested in iPhone development? Want to learn more? Whether you’re a self-taught iPhone development genius or have just made your way through the pages of Beginning iPhone 3 Development, we have the perfect book for you. More iPhone 3 Development: Tackling iPhone SDK 3 digs deeper into Apple’s lat

Beginning iPhone 3 Development: Explorin
✍ David Mark, Jeff LaMarche 📂 Library 📅 2009 🏛 Apress 🌐 English

Although I have prior Cocoa/MacOS programming experience, Cocoa Touch on the iPhone was enough different that I needed some help to come up to speed quickly. This book was just the ticket. I found it well written and the level of detail was good.