Use Xcode 5 to Write Great iOS and OS X Apps!
Xcode 5 Start to Finish will help you use the tools in Apple's Xcode 5 to improve productivity, write great code, and leverage the newest iOS 7 and OS X Mavericks features.
Drawing on thirty years of experience developing for Apple platforms and helping others do so, Fritz Anderson shows you a complete best-practice Xcode workflow. Through three full sample projects, you'll learn to integrate testing, source control, and other key skills into a high-efficiency process that works.
Anderson shows you better ways to storyboard, instrument, build, and compile code, and helps you apply innovations ranging from Quick Look to Preview Assistant. By the time you're finished, you'll have the advanced Xcode skills to develop outstanding software.
Coverage includes
- Setting breakpoints and tracing execution for active debugging
- Creating libraries by adding and building new targets
- Integrating Git or Subversion version control
- Creating iOS projects with MVC design
- Designing Core Data schemas for iOS apps
- Linking data models to views
- Designing UI views with Interface Builder
- Using the improved Xcode 5 Autolayout editor
- Improving reliability with unit testing
- Simplifying iOS provisioning
- Leveraging refactoring and continual error checking
- Using OS X bindings, bundles, packages, frameworks, and property lists
- Localizing your apps
- Controlling how Xcode builds source code into executables
- Analyzing processor and memory usage with Instruments
- Integrating with Mavericks Server's sleek continuous integration system
Register your book at www.informit.com/register for access to this title's downloadable code.
Autorentext
Fritz Anderson has been writing software, books, and articles for and about Apple platforms since 1984. He has worked for research and development firms, consulting practices, and as a freelancer. He was admitted to the Indiana bar but thought better of it. He is now an iOS and Mac programmer for the Scholarly Technology department at the University of Chicago.
Klappentext
Use Xcode 5 to Write Great iOS and OS X Apps!
Xcode 5 Start to Finish will help you use the tools in Apple's Xcode 5 to improve productivity, write great code, and leverage the newest iOS 7 and OS X Mavericks features.
Drawing on thirty years of experience developing for Apple platforms and helping others do so, Fritz Anderson shows you a complete best-practice Xcode workflow. Through three full sample projects, you'll learn to integrate testing, source control, and other key skills into a high-efficiency process that works.
Anderson shows you better ways to storyboard, instrument, build, and compile code, and helps you apply innovations ranging from Quick Look to Preview Assistant. By the time you're finished, you'll have the advanced Xcode skills to develop outstanding software.
Coverage includes
- Setting breakpoints and tracing execution for active debugging
- Creating libraries by adding and building new targets
- Integrating Git or Subversion version control
- Creating iOS projects with MVC design
- Designing Core Data schemas for iOS apps
- Linking data models to views
- Designing UI views with Interface Builder
- Using the improved Xcode 5 Autolayout editor
- Improving reliability with unit testing
- Simplifying iOS provisioning
- Leveraging refactoring and continual error checking
- Using OS X bindings, bundles, packages, frameworks, and property lists
- Localizing your apps
- Controlling how Xcode builds source code into executables
- Analyzing processor and memory usage with Instruments
- Integrating with Mavericks Server's sleek continuous integration system
Register your book at www.informit.com/register for access to this title's downloadable code.
Inhalt
Acknowledgments xxiii About the Author xxv
Introduction 1 How This Book Is Organized 1 About Versions 4 About the Code 4 Conventions 5
Part I: First Steps 7
Chapter 1: Getting Xcode 9
Before You Begin 9 Installing Xcode 10 Removing Xcode 11 Apple Developer Programs 12 Downloading Xcode 13 Additional Downloads 14 Summary 15
Chapter 2: Kicking the Tires 17 Starting Xcode 17 Hello World 18 Getting Rid of It 24 Summary 24
Chapter 3: Simple Workflow and Passive Debugging 25 Creating the Project 25 Building 29 Running 31 Simple Debugging 32 Summary 34
Chapter 4: Active Debugging 35 A Simple Test Case 35 Going Active 35 Fixing the Problem 39 Summary 43
Chapter 5: Compilation 45 Compiling 45 Linking 50 Dynamic Loading 52 Xcode and Clang 53 Compiler Products 58 Summary 62
Chapter 6: Adding a Library Target 63 Adding a Target 63 Target Membership 65 A Dependent Target 68 Summary 70
Chapter 7: Version Control 73 Taking Control 74 The State of Your Files 76 Your First Commit 78 Working with Remote Repositories 79 Merges and Conflicts 83 The Version Editor 93 Branching 96 Summary 98
Part II: The Life Cycle of an iOS Application 101
Chapter 8: Starting an iOS Application 103
Planning the App 103 Starting a New iOS Project 106 What's in the Project 108 One More Thing 110 Summary 112
Chapter 9: An iOS Application: Model 113 Implementing the Model 113 Managed-Object Classes 120 Making the Model Easier to Debug 131 Summary 132
Chapter 10: An iOS Application: Controller 133 Renaming Symbols 133 Editing the View Controller 136 Live Issues and Fix-it 138 The Real Passer Rating 140 Summary 145
Chapter 11: Building a New View 147 The Next View Controller 147 Building a View 152 The Table View 161 Outlets 161 Testing the Billboard View 170 Summary 171
Chapter 12: Autolayout in a New View 173 Why Autolayout? 173 The Player Billboard, Revisited 175 The Label System 179 Summary 185
Chapter 13: Adding Table Cells 187 The Game Table 187 The Game Table: First Run 191 A Custom Table Cell 193 Adding Some Graphics 196 Summary 202
Chapter 14: Adding an Editor 205 The Plan 205 Adding a Modal Scene 205 The Editor View Controllers 210 Segues 218 Summary 219
Chapter 15: Unit Testing 221 The Test Navigator 222 Testing the CSV Reader 224 Testing and the Debugger 229 Application Tests 232 TestKit Assertions 233 Summary 236
Chapter 16: Measurement and Analysis 237 Speed 237 Memory 247 Summary 253
Chapter 17: Provisioning 255 Apple Developer Programs 255 Provisioning for iOS 257 The Capabilities Editor 262 OS X Sandboxing 264 Gatekeeper and Developer ID 266 Distribution Builds 269 Summary 273
Part III: Xcode for Mac OS X 275
Chapter 18: Starting an OS X Application 277
The Goal 277 Getting Started 278 Model 281 Wiring a Menu 287 Summary 293
Chapter 19: Bindings: Wiring an OS X Application 295 Laying Out the Document Window 295 Filling the Table- Bindings 301 Layering NSC…