Preface; Audience; Organization of This Book; Conventions Used in This Book; Using Code Examples; SafariĀ® Books Online; How to Contact Us; Acknowledgments;Chapter 1: Cocoa Development Tools; 1.1 The Mac and iOS Developer Programs; 1.2 Getting Around in Xcode; 1.3 Developing a Simple Objective-C Application; 1.4 Using the iOS Simulator;Chapter 2: Object-Oriented Programming with Objective-C; 2.1 Object-Oriented Programming; 2.2 Memory Management; 2.3 The NSObject Life Cycle;Chapter 3: Foundation; 3.
1 Mutable and Immutable Objects; 3.2 Strings; 3.3 Arrays; 3.4 Dictionaries; 3.5 NSValue and NSNumber; 3.6 Data; 3.7 Design Patterns in Cocoa;Chapter 4: Applications on OS X and iOS; 4.1 What Is an Application?; 4.
2 The Application Lifecycle; 4.3 The Application Sandbox;Chapter 5: Graphical User Interfaces; 5.1 Interfaces in OS X and iOS; 5.2 MVC and Application Design; 5.3 Nib Files; 5.4 Constructing an Interface; 5.5 Building an App with Nibs and Constraints; 5.6 Core Animation;Chapter 6: Blocks and Operation Quotes; 6.
1 Blocks; 6.2 Concurrency with Operation Queues; 6.3 Putting It All Together;Chapter 7: Drawing Graphics in Views; 7.1 How Drawing Works; 7.2 The Pixel Grid; 7.3 Drawing in Views; 7.4 Building a Custom View;Chapter 8: Audio and Video; 8.1 AV Foundation; 8.
2 Playing Video with AVPlayer; 8.3 Playing Sound with AVAudioPlayer; 8.4 Working with the Photo Library;Chapter 9: Model Objects and Data Storage; 9.1 Key-Value Coding; 9.2 Key-Value Observing; 9.3 Notifications with NSNotification; 9.4 Preferences; 9.5 Working with the Filesystem; 9.
6 Working with the Sandbox;Chapter 10: Cocoa Bindings; 10.1 Binding Views to Models; 10.2 A Single Bindings App; 10.3 Binding to Controllers; 10.4 Array and Object Controllers; 10.5 A More Complex Bindings App;Chapter 11: Table Views and Collection Views; 11.1 Data Sources and Delegates; 11.2 Table Views; 11.
3 UITableView on iOS; 11.4 NSTableView on OS X; 11.5 Collection Views;Chapter 12: Document-Based Applications; 12.1 The NSDocument and UIDocument Classes; 12.2 Document Objects in MVC; 12.3 Kinds of Documents; 12.4 The Role of Documents; 12.5 Document-Based Applications on OS X; 12.
6 Document-Based Applications on iOS;Chapter 13: Networking; 13.1 Connections; 13.2 Building a Networked Application; 13.3 Discovering Nearby Services;Chapter 14: Working with the Real World; 14.1 Working with Location; 14.2 Geocoding; 14.3 Locations and Privacy; 14.4 Device Motion; 14.
5 Printing Documents;Chapter 15: Event Kit; 15.1 Understanding Events; 15.2 Working with Events; 15.3 Building an Events Application; 15.4 User Privacy;Chapter 16: Instruments and the Debugger; 16.1 Getting Started with Instruments; 16.2 Fixing Problems with Instruments; 16.3 Retain Cycles and Leaks; 16.
4 Using the Debugger;Chapter 17: Sharing and Notifications; 17.1 Sharing; 17.2 Notifications;Chapter 18: Nonstandard Apps; 18.1 Command-Line Tools; 18.2 Preference Panes; 18.3 Status Bar Items;Chapter 19: Working with Text; 19.1 Internationalization and Localization; 19.2 Formatting Data with NSFormatter; 19.
3 Detecting Data with NSDataDetector;Chapter 20: iCloud; 20.1 What iCloud Stores; 20.2 Setting Up for iCloud; 20.3 Testing Whether iCloud Works; 20.4 Storing Settings; 20.5 iCloud Storage;Colophon;.