Xcode 4 Unleashed (Unleashed) (2ND)

Xcode 4 Unleashed (Unleashed) (2ND)

  • Sams(2012/05発売)
  • ただいまウェブストアではご注文を受け付けておりません。 ⇒古書を探す
  • 製本 Paperback:紙装版/ペーパーバック版/ページ数 529 p.
  • 言語 ENG
  • 商品コード 9780672333279
  • DDC分類 005.432

Full Description


In Xcode 4 Unleashed, renowned Mac/iOS developer Fritz Anderson shows how to use Apple's powerful new Xcode 4 integrated development environment to develop outstanding software with the least effort possible.Anderson demonstrates Xcode 4 by walking through the construction of three full applications: a command-line tool, an iOS app, and a Mac OS X application. These case-study projects offer practical insights and realistic best practices for efficiently utilizing Xcode 4 in day-to-day development.Next, he drills down to offer an even deeper understanding of Xcode 4's most powerful capabilities. Through practical examples, he shows experienced Apple developers how to move to Xcode 4's "browser" model from older document-based approaches. You'll also find thorough, up-to-the-minute coverage of key tasks ranging from builds and profiling to documentation.He concludes with a chapter-length roundup of "tips, traps, and features" for maximizing your productivity with Xcode 4-whether you're writing iOS apps or Mac applications, working solo, or as part of a large development team.Detailed information on how to...Get started fast with Xcode 4 project workflowMaster Xcode 4's new features and development paradigmsConstruct modern iOS and Mac user interfaces with Interface BuilderImplement Model-View-Controller designs in iOS appsUse Storyboard to specify an iOS app's entire structure in one fileLeverage Xcode's first-class unit testing and measurement toolsMaster the essentials of iOS provisioningUse Mac OS X bindings to simplify the link between data and screenQuickly localize Mac and iOS software for new languages and marketsPackage and share subprograms that can be integrated into any OS X applicationUse the Xcode Build System to move from source files to executable productsFully understand and optimize performance and resource usageRegister your copy today at informit.com/register to download a free 90+ page guide to 4.4 & 4.5 feature changes

Contents

Introduction 1Part I First Steps1 Getting Xcode 9Before You Do Anything 9Requirements 10Installing Xcode. 10What You Get 11Removing Xcode. 12Apple Developer Programs 12Through an Installer Package 13Summary 152 Kicking the Tires 17Starting Xcode 17Hello World 19A New Project 19Quieting Xcode Down 21Building and Running 21The Real Thing 23Getting Rid of It 23Summary 243 Simple Workflow and Passive Debugging 25Building 28Running 30Simple Debugging 32Summary 334 Active Debugging 35A Simple Test Case 35Going Active 35Setting a Breakpoint. 36The Variables Pane 37Stepping Through 38Fixing the Problem 40Behaviors 40The Fix 42Summary 435 Compilation 45Compiling 46Linking 50Dynamic Loading 51Xcode's Refinements 52Compiler Products 55Intermediate Products 55Precompiled Headers 56Summary 566 Adding a Library Target 57Adding a Target 57Targets 58Target Membership 58Adding Files to a Target 59Headers in Targets 61A Dependent Target 62Adding a Library 63Debugging a Dependent Target 63Summary 647 Version Control 65Taking Control 66Creating a Git Repository by Hand 66The State of Your Files 68How Subversion Views Files 68How Git Views Files 68How Xcode Views Files 69Your First Commit 70Adding a Remote Repository 71Setting Up the Remote 71Pushing to the Remote 72Starting from a Repository 74Merges and Conflicts 75User A 75User B 75Merging 76Conflicts 77The Versions View 79Comparison 79Blame 81Log 82Branching 82Summary 84Part II The Life Cycle of an iOS Application8 Starting an iOS Application 87Planning the App 87Model-View-Controller 87The Model 88The Views 89The Controllers 90Starting a New iPhone Project 90Target Editor 92Copyright, Again 93One More Thing 97Summary 989 An iOS Application: Model 99Implementing the Model 99Entities 100Attributes 100Relationships 102Managed-Object Classes 105Creating the Classes 105Extending the Classes 106Some Test Data 108Making the Model Easier to Debug 111Summary 11110 An iOS Controller 113Renaming Symbols 113Refactoring a Method Name 114Refactoring a Class Name 114Editing the View Controller 116The Table View 116Setting Up the Passer List 117Creating a New Passer 117Live Issues and Fix-it 118The Real Passer Rating 120Another Bug 120Running Passer Rating 123Summary 12511 Building a New View 127Adding a View Controller 127XIB Files 128Building a View 130Lots of Labels 132First Tryout 134Outlets 134Checking Connections 137Connecting GameListController 137Code Completion and Snippets 139Testing the Passer Detail View 141Summary 14112 Adding Table Cells 143The Game Table 143Schemes 147A Custom Table Cell 149Summary 15413 Unit Testing 155Logic Testing 156Test Data 158Testing the CSV Reader 159Application Testing 166SenTestingKit Assertions 168Simple Tests 169Equality 169Exceptions 169Summary 17014 Measurement and Analysis 173Speed 173Memory 182Allocations 182Leaks 187Zombies 189Analysis 193The Analyzer 193Automatic Reference Counting 195Summary 19615 Storyboard 197What Storyboard Is 197A Storyboard Project 199Reconstructing Passer Rating 201Workspaces 201Copying the Model 203Coding the Passer List 205Copying Views 205A Custom Table View Cell 207Adding a Passer Editor 210Creating the Editor View 210Coding the Editor Controller 212Adding a Segue 215Editing an Existing Passer 217Summary 21916 Provisioning 221Developer Programs 221Organizations 221Individuals 222The Enterprise Program 222The Provisioning Story 222Automatic Device Provisioning 223The Provisioning Portal 225Development Certificates 225Distribution Certificates 225Device IDs 226Application IDs 227Development Profiles 228Distribution Profiles 229Using a Signing Identity 230Distribution Builds 231Sharing Identities and Profiles 233Preparing an App Store Release 234Final Provisioning 234iTunes Connect 234Validating and Submitting 235Summary 236Part III Xcode for Mac OS X17 Starting a Mac OS X Application 239The Goal 239Getting Started 240Model 243Porting from iOS 243Automatic Reference Counting 246Making the Application Twitch 248Wiring Up a Menu 248Loading Data into LeagueDocument 250Summary 25118 Wiring a Mac Application with Bindings 253Filling the Document Window 253A Table View 254Autoresizing 255Your First Object Controller 258Binding the Team Table 260Running Bindings 260Laying Out Views 263The Passer and Game Array Controllers 264Binding the Passer Table 266The Game Table-Truncation and Dates 268The Game Popover 269Summary 27319 A Custom View for Mac OS X 275A Graphing View 276Back to the View Controller 279Using PasserGraphController 281Custom View Properties 282Summary 28320 Localization and Autolayout 285Adding a Localization 286Trying It Out 287Localizing MainMenu.xib 288Localizing the Window XIBs 291Translating View Strings 291 Making the Text Fit-by Hand 292Making the Text Fit-Autolayout 292Localizing Info.plist 300Strings in Code 302Summary 30621 Bundles and Packages 307A Simple Package: RTFD 308Bundles 309Application Bundles 309The Info.plist File 311Localizing Info.plist 312Info.plist Keys 312Keys for All Bundles 312Keys for iOS and Mac OS X Applications 314Keys for Mac OS X Applications 315iOS Keys 320Keys for Plug-ins 322Keys for Preference Panes 323Keys for Dashboard Widgets 323Summary 32422 Frameworks 325Adding a Framework Target 326Populating the Framework 326Using the Framework 327Installing a Framework 327Running the Application Alone 328 Where Frameworks Are Found 330Putting the Framework in the Application 331Building Mac Passer Rating 332One More Thing 332Summary 33623 Property Lists 337Property List Types 337Editing Property Lists 338A Brand New Property List 341 Why Not the Property List Editor? 345Other Formats 348Text Property Lists 348Binary Property Lists 348Specialized Property Lists 349Summary 350Part IV Xcode Tasks24 Xcode 4 for Xcode 3 Veterans 353The Desktop and the Browser 353Start Slow 354The Sorcerer's Apprentice 355The Editor 355The Assistant Editor 355 More Than One Editor 356Building 358Where Did Everything Go? 358Groups & Files 358Detail View 360Info Windows 360Special-Purpose Editors 362Browsers 364Source Control 364Interface Builder. 365Other Changes 366Summary 36825 Documentation in Xcode 369Intrinsic Help 369The Quick Help Inspector 369The Quick Help Popover 370Open Quickly 371Help 372Xcode How-To's. 373The Documentation Organizer 373Browsing Documentation 373Searching Documentation 374Bookmarks 375Keeping Current 375Generating Documentation 377Installing Doxygen 378 What Doxygen Does 378Configuring Doxygen: The Wizard 381Configuring Doxygen: Expert Settings 383Running Doxygen 384Installing a Docset 385Making Doxygen Part of Your Builds 386Summary 38826 The Xcode Build System 389Xcode Build Variables 392Settings Hierarchy 393Editing Build Variables 395Configurations 396Adjusting Configurations 396Adding Configurations 398Configuration Files 398Creating a Configuration File 398SDK- and Architecture-Specific Settings 399Preprocessing xcconfig Files 399The xcodebuild Tool 400Custom Build Rules 401The Build Log 403A Simple Build Transcript 404Resources 406Precompiled Header 407Compiling Source Files 408Linking 409 Making a Universal Binary 410Touch 410Summary 41027 Instruments 411What Instruments Is 411Running Instruments 412The Trace Document Window 413The Library 419Instrument Configuration 420Recording 421Saving and Reopening 423The Instruments 424Core Data. 424Custom Instruments 425Dispatch 425File System 425Garbage Collection 426Graphics 426Input/Output 426 Master Tracks 426 Memory 426System 427Threads/Locks 429UI Automation 429User Interface. 430Instruments Available to iOS 430Custom Instruments 431The Templates 433For Both Mac and iOS 433iOS Only 434 Mac Only 435Summary 43528 Snippets 437Tricks 437General 437The Jump Bar 440Code Folding Ribbon 440The Assistant Editor 441Interface Builder 442Instruments and Debugging 443Building 445 Managing Schemes 447Traps 448Part V AppendixesA Objective-C 455The Basics 456A Class Interface 457A Class Implementation 458Objective-C 2.0 and Cocoa. 460Key-Value Coding 461 Memory Management 462Attribute Accessors and Memory Management 463Properties 464Fast Enumeration 467Foundation Data Types 468Dynamic Dispatch 470Objective-C++. 471Summary 471B Some Build Variables 473Useful Build Variables 475Environment 475Build Targets 477Source Locations 478Destination Locations 478Bundle Locations 479Compiler Settings 480Search Paths 481Deployment 482Info.plist 482Source Trees 483C Project and Target Templates 485iOS Project Templates 487Application 487Framework & Library 488Other 488Mac OS X Project Templates 489Application 489Framework & Library 490Application Plug-in 491System Plug-in 492Other 492Target Templates 493iOS File Templates 493Cocoa Touch 493C and C++. 494Core Data. 495Resource 495Other 496Mac OS X File Templates 496Cocoa 496C and C++. 496User Interface 497Core Data 497Resource 497Other 497The File Template Library 497D Resources 499Books 499On the Net 500Forums 500 Mailing Lists 501Developer Technical Support 501Sites and Blogs 502Face-to-Face 503Meetings 503Classes 503Other Software. 504Text Editors 504Accessories 505Index 507

最近チェックした商品