Professional Xcode 3ISBN: 978-0-470-52522-7
Paperback
744 pages
March 2010
This title is out-of-print and not currently available for purchase from this site.
|
INTRODUCTION xxvii
CHAPTER 1: INSTALLING XCODE 1
The Xcode Installer 2
Running the Installer 3
Upgrading Xcode 6
Removing and Reinstalling Xcode 7
Summary 8
CHAPTER 2: THE GRAND TOUR 9
The Project 9
Menus 12
Editors 12
Searching, Symbols, and Refactoring 13
Getting Help 15
Building 16
Getting It Right 17
Collaboration and Version Control 18
Summary 18
CHAPTER 3: XCODE LAYOUT 19
Project Layout 22
Groups & Files 24
Details, Details 32
Info Windows 35
Toolbars 37
Status Bar and Favorites Bar 38
Activity Viewer Window 39
Summary 39
CHAPTER 4: THE PROJECT 41
Creating a New Project 42
Project Settings 50
Summary 51
CHAPTER 5: SOURCES 53
References 54
Source Item Types 58
Source Item Attributes 60
Organizing Sources 63
Creating New Source Files 71
Creating an Empty File 75
Adding Existing Items 75
Removing Source Items 80
Reorganizing Sources 80
Summary 85
CHAPTER 6: EDITING TEXT 87
Windows and Panes 88
The Editor Pane 94
Display Options 99
Navigation Within a File 104
Editing 113
Shell Scripts 118
Spell Checking 119
File Encoding 122
Localizing Files 123
Printing 125
Services 126
Summary 126
CHAPTER 7: SYNTAX-AWARE EDITING 127
Code Sense 128
Syntax Coloring 130
Code Folding 134
Indenting Text 136
Code Completion 142
Text Macros 146
Editing Symbol Names 148
Summary 150
CHAPTER 8: SEARCHING 151
Searching and Replacing Text in a Single File 152
Searching and Replacing Text in Multiple Files 154
Search Patterns 160
Search History 172
Find Results Smart Group 173
Search Shortcuts 174
Searching Lists 175
Summary 177
CHAPTER 9: CLASS BROWSER 179
Navigating the Class Browser 179
Class Browser Option Sets 182
Browser Shortcuts 184
Summary 184
CHAPTER 10: REFACTORING 185
Refactoring Workflow 186
C and Objective-C Transformations 188
Updating a Project to Objective-C 2.0 197
Refactoring Pitfalls 198
Summary 200
CHAPTER 11: SNAPSHOTS 201
Taking Snapshots 202
Managing Snapshots 203
Deleting Snapshots 206
Summary 206
CHAPTER 12: HELP AND DOCUMENTATION 207
The Documentation Window 208
Sample Projects 214
Searching Documentation 215
Documentation Shortcuts 221
Man Pages 223
Customizing Help 223
The Xcode Community 226
Summary 227
CHAPTER 13: INTERFACE BUILDER 229
What Is Interface Builder? 230
Interface Builder Workflow 233
Interface Builder’s Interface 236
Creating a Nib Document 239
Opening Sister Localizations 243
Creating Objects 243
Copying, Duplicating, and Deleting Objects 245
Selecting Objects 245
Configuring Objects 250
Connecting Objects 262
Custom Classes 269
Placeholder Objects 274
Decomposing an Interface 277
Importing and Exporting Classes 277
Nib Document Formats 278
Customizing Interface Builder 280
Summary 283
CHAPTER 14: CLASS MODELING 285
Creating a Class Model 287
Class Model Browser 291
Class Model Diagram 292
Editing a Class Model 297
Summary 307
CHAPTER 15: DATA MODELING 309
Technology 310
Terminology 311
Creating a Data Model 312
Data Modeling Interface 318
Creating an Instant Interface 326
Migrating Data Schemas 327
Creating NSManagedObject Subclasses 334
Exporting Class Methods 336
Importing Data Models 337
Summary 337
CHAPTER 16: TARGETS 339
Targets vs. Sub-Projects 340
The Anatomy of a Target 343
Target Types 346
Creating a Target 349
Build Phases 353
Build Rules 359
Dependencies 364
Build Settings 367
Jam-Based Target Editor 367
Properties 369
Products 371
Executables 371
Summary 372
CHAPTER 17: BUILDING PROJECTS 373
Starting and Stopping a Build 374
Clean Builds 378
Partial Builds 380
The Build Window 381
Build Preferences 387
Build Locations 389
Build Location Strategies 392
Build Settings 393
Build Configurations 401
Editing Build Settings 402
Editing Build Configurations 409
Configuration Settings Files 410
Moving Build Settings Around 412
Environment Settings 413
Customizing the Build 414
The xcodebuild Tool 429
Xcode Automator Actions 431
Distributed Builds 432
Summary 436
CHAPTER 18: DEBUGGING 437
Running Your Application 438
Debug Anytime, Anywhere 440
Built to be Debugged 442
Debugging Executables 446
Attaching to Running Executables 447
In-Editor Debugging 449
The Debugger Window 453
Controlling the Debugger 460
The Mini-Debugger 464
Breakpoints 465
Examining Data 480
Data Formatters 484
Watchpoints 490
Changing Data and Code 491
Debugger Console 493
Shared Libraries 494
Custom Executables 496
Debugger Preferences 500
Debugging Aides 506
Summary 509
CHAPTER 19: PERFORMANCE ANALYSIS 511
Performance Basics 512
Preparing for Analysis 514
Shark 514
Instruments 525
Summary 548
CHAPTER 20: UNIT TESTING 549
How Unit Tests Work 550
Getting Started with Unit Tests 551
Adding a Unit Test Target 553
Creating a Unit Test 560
Debugging Unit Tests 572
Summary 575
CHAPTER 21: SHARING SOURCE 577
Sharing via Xcode 578
Source Trees 579
Source Control 582
Source Control vs. Snapshots 615
Summary 615
CHAPTER 22: USING THE ORGANIZER 617
Project & Sources 618
Using Organizer Actions 621
Devices 629
iPhone Development 636
Summary 637
CHAPTER 23: CUSTOMIZING XCODE 639
Xcode Preferences 640
Key Bindings 641
Using an External Editor 646
Text Macros 649
Expert Preferences 656
Templates 665
User Scripts 674
AppleScript 681
Resetting Your Xcode Customizations 683
Summary 683
INDEX 685