Atjaunināt sīkdatņu piekrišanu

Sams Teach Yourself Core Data for Mac and iOS in 24 Hours [Mīkstie vāki]

  • Formāts: Paperback / softback, 480 pages, height x width x depth: 180x233x25 mm, weight: 740 g
  • Izdošanas datums: 23-Nov-2011
  • Izdevniecība: Sams Publishing
  • ISBN-10: 0672335778
  • ISBN-13: 9780672335778
Citas grāmatas par šo tēmu:
  • Mīkstie vāki
  • Cena: 44,74 €*
  • * Šī grāmata vairs netiek publicēta. Jums tiks paziņota lietotas grāmatas cena
  • Šī grāmata vairs netiek publicēta. Jums tiks paziņota lietotas grāmatas cena.
  • Daudzums:
  • Ielikt grozā
  • Pievienot vēlmju sarakstam
  • Formāts: Paperback / softback, 480 pages, height x width x depth: 180x233x25 mm, weight: 740 g
  • Izdošanas datums: 23-Nov-2011
  • Izdevniecība: Sams Publishing
  • ISBN-10: 0672335778
  • ISBN-13: 9780672335778
Citas grāmatas par šo tēmu:

In just 24 sessions of one hour or less, start using Core Data to build powerful data-driven apps for iOS devices and Mac OS X computers! Using this book’s straightforward, step-by-step approach, you’ll discover how Apple’s built-in data persistence framework can help you meet any data-related requirement, from casual to enterprise-class. Beginning with the absolute basics, you’ll learn how to create data models, build interfaces, interact with users, work with data sources and table views, and even get started with iCloud. Every lesson builds on what you’ve already learned, giving you a rock-solid foundation for real-world success!

Step-by-step instructions carefully walk you through the most common Core Data development tasks.

Quizzes and Exercises at the end of each chapter help you test your knowledge.

Notes present interesting information related to the discussion.

Tips offer advice or show you easier ways to perform tasks.

Cautions alert you to possible problems and give you advice on how to avoid them.

Learn how to…

  • Start writing database apps fast, with Xcode 4’s powerful tools and templates
  • Master the Objective-C features and patterns Core Data relies upon
  • Understand Core Data’s goals, components, and behavior
  • Model data graphically with Xcode 4’s Data Model Editor
  • Leverage the full power of Managed Objects
  • Use controllers to integrate your data model with your code
  • Fetch, use, and store data from any source
  • Develop interfaces and features more quickly with Interface Builder
  • Add navigation and control features that integrate seamlessly with Core Data
  • Interact with users via popovers, segmented controls, action sheets, and tab bars
  • Create table views that users can edit
  • Let Xcode 4 and Core Data validate your data for you
  • Use Predicates to precisely select the right data
  • Get ready for iCloud features to sync and move data among your iCloud-enabled devices

Jesse Feiler is a leading expert on Apple database development. Feiler has worked with databases since the 1980s, writing about technologies that have since evolved into Core Data. His database clients have included Federal Reserve Bank of New York, Young & Rubicam, and many small and nonprofit organizations. His recent books includeData-Driven iOS Apps for iPad and iPhone with FileMaker Pro, Bento by FileMaker, and FileMaker Go, andFileMaker Pro in Depth.

Category: Mac Programming

Covers: Core Data

User Level: Beginning-to-Intermediate

Register your book at informit.com/title/9780672335778 for access to all code examples from the book, as well as updates, and corrections as they become available.

Introduction 1(6)
Who Should Read This Book
1(1)
Some Points to Keep in Mind
2(1)
How This Book Is Organized
3(4)
Part I: Getting Started with Core Data
Hour 1: Introducing Xcode 4
7(42)
Getting to Know Xcode
8(1)
Goodbye "Hello, World"
8(3)
Hello, App Development for Mac OS X and iOS
11(2)
Getting Started with Xcode
13(2)
Using the Navigator
15(10)
Using Editors
25(4)
Working with Assistant
29(2)
Getting Help in an Editor Window
31(1)
Using Utilities-Inspectors
31(4)
Using Utilities-Libraries
35(5)
Using the Text Editor
40(5)
Using the Organizer Window
45(2)
Summary
47(1)
Workshop
48(1)
Activities
48(1)
Hour 2: Creating a Simple App
49(14)
Starting to Build an App
49(3)
Building the Project
52(6)
Exploring the App
58(2)
Summary
60(1)
Workshop
60(1)
Activities
61(2)
Hour 3: Understanding the Basic Code Structure
63(22)
Working with the Code
63(3)
Looking at Object-Oriented Programming in the Context of Objective-C
66(2)
Using Declared Properties
68(5)
Messaging in Objective-C
73(2)
Using Protocols and Delegates
75(6)
Using the Model/View/Controller Concepts
81(1)
Importing and Using Declarations in Files
82(1)
Summary
83(1)
Workshop
84(1)
Activities
84(1)
Part II: Using Core Data
Hour 4: Getting the Big Core Data Picture
85(16)
Starting Out with Core Data
85(5)
Examining Core Data at Runtime: The Core Data Stack
90(6)
Working with Fetched Results
96(3)
Summary
99(1)
Workshop
99(1)
Activities
99(2)
Hour 5: Working with Data Models
101(16)
Making the Abstract Concrete
101(2)
Working with Entities
103(2)
Adding Attributes to Entities
105(2)
Linking Entities with Relationships
107(1)
Keeping Track of Your Data in Files and Documents
108(8)
Summary
116(1)
Workshop
116(1)
Activities
116(1)
Hour 6: Working with the Core Data Model Editor
117(16)
Moving the Data Model from Paper to Xcode and the Core Data Model Editor
117(2)
Adding Entities to the Data Model
119(6)
Choosing the Editor Style
125(1)
Adding Relationships to a Data Model
126(6)
Summary
132(1)
Workshop
132(1)
Activities
132(1)
Hour 7: What Managed Objects Can Do
133(10)
Using Managed Objects
133(1)
Deciding Whether to Override NSManagedObject
134(2)
Overriding NSManagedObject
136(4)
Implementing Transformation in an NSManagedObject Subclass
140(2)
Summary
142(1)
Workshop
142(1)
Activities
142(1)
Hour 8: Controllers: Integrating the Data Model with Your Code
143(10)
Looking Inside Model/View/Controller
143(4)
Integrating Views and Data on Mac OS
147(4)
Integrating Views and Data on iOS
151(1)
Summary
152(1)
Workshop
152(1)
Activities
152(1)
Hour 9: Fetching Data
153(18)
Choosing the Core Data Architecture
153(1)
Exploring the Core Data Fetching Process
154(4)
Using Managed Object Contexts
158(1)
Creating and Using a Fetch Request
159(2)
Stopping the Action to Add New Data
161(1)
Optimizing Interfaces for Core Data
162(6)
Summary
168(1)
Workshop
168(1)
Activities
169(2)
Hour 10: Working with Predicates and Sorting
171(18)
Understanding Predicates
171(6)
Constructing Predicates
177(1)
Creating a Fetch Request and Predicate with Xcode
178(7)
Sorting Data
185(2)
Summary
187(1)
Workshop
187(1)
Activities
187(2)
Part III: Developing the Core Data Interface
Hour 11: Finding Your Way Around the Interface Builder Editor: The Graphics Story
189(20)
Starting to Work with the Interface Builder Editor in Xcode
189(8)
Working with the Canvas
197(9)
Summary
206(1)
Workshop
206(1)
Activities
207(2)
Hour 12: Finding Your Way Around the Interface Builder Editor: The Code Story
209(14)
Using the Connections Inspector
209(6)
Using IBOutlets for Data Elements
215(7)
Summary
222(1)
Workshop
222(1)
Activities
222(1)
Hour 13: Control-Dragging Your Way to Code
223(16)
Repurposing the Master-Detail Application Template
223(7)
Adding New Fields as IBOutlets
230(7)
Summary
237(1)
Workshop
237(1)
Activities
238(1)
Hour 14: Working with Storyboards and Swapping Views
239(18)
Creating a Project with a Storyboard
239(2)
Swapping Views on iOS Devices
241(3)
Swapping Detail Views (the Old Way)
244(2)
Understanding the Storyboard Concept
246(2)
Looking at the Estimator Storyboard and Code
248(3)
Creating a Storyboard
251(3)
Summary
254(1)
Workshop
255(1)
Activities
255(2)
Part IV: Building the Core Data Code
Hour 15: Saving Data with a Navigation Interface
257(22)
Using a Navigation Interface to Edit and Save Data
257(6)
Starting from the Master-Detail Template
263(4)
Using the Debugger to Watch the Action
267(5)
Adding a Managed Object
272(1)
Moving and Saving Data
273(2)
Cleaning Up the Interface
275(2)
Summary
277(1)
Workshop
278(1)
Activities
278(1)
Hour 16: Using Split Views on iPad
279(10)
Moving to the iPad
279(2)
Implementing the Second Interface
281(3)
Changing the Data Update and Saving Code
284(3)
Summary
287(1)
Workshop
287(1)
Activities
288(1)
Hour 17: Structuring Apps for Core Data, Documents, and Shoeboxes
289(28)
Looking at Apps from the Core Data Point of View: The Role of Documents
289(3)
Exploring App Structure for Documents, Mac OS, and iOS
292(19)
Moving Data Models
311(1)
Moving a Data Model from One Project to Another
312(3)
Summary
315(1)
Workshop
316(1)
Activities
316(1)
Hour 18: Validating Data
317(20)
Using Validation Rules in the Data Model
317(3)
Setting Up Rules in Your Data Model
320(7)
Entering Data into the Interface and Moving It to the Data Model (and Vice Versa)
327(4)
Creating Subclasses of NSManagedObject for Your Entities
331(4)
Summary
335(1)
Workshop
336(1)
Activities
336(1)
Part V: Managing Data and Interfaces
Hour 19: Using UITableView on IOS
337(26)
Working with Table Views and iOS, Mac OS, and Core Data
337(2)
Comparing Interfaces: Settings on iOS and System Preferences on Mac OS
339(5)
Using UITableView Without Core Data
344(13)
Using UITableView with Core Data
357(3)
Summary
360(1)
Workshop
361(1)
Activities
361(2)
Hour 20: Using NSTableView on Mac OS
363(12)
Exploring the New NSTableView Features
363(3)
Building an NSTableView App
366(7)
Summary
373(1)
Workshop
374(1)
Activities
374(1)
Hour 21: Rearranging Table Rows on iOS
375(18)
Handling the Ordering of Table Rows
375(5)
Allowing a Table Row to Be Moved
380(2)
Doing the Move
382(9)
Summary
391(1)
Workshop
392(1)
Activities
392(1)
Hour 22: Managing Validation
393(16)
Validation for Free
393(1)
Validation on Mac OS
394(8)
Programming Validation for iOS or Mac OS
402(5)
Summary
407(1)
Workshop
407(1)
Activities
408(1)
Hour 23: Interacting with Users
409(14)
Choosing an Editing Interface
409(4)
Communicating with Users
413(6)
Using Sheets and Modal Windows on Mac OS
419(3)
Summary
422(1)
Workshop
422(1)
Activities
422(1)
Hour 24: Migrating Data Models
423(18)
Introducing the Core Data Migration Continuum
423(1)
Managing Data Model Migration
424(2)
Working with Data Model Versions
426(6)
Using Automatic Lightweight Migration
432(2)
Looking at a Mapping Model Overview
434(4)
Summary
438(1)
Workshop
438(1)
Activities
439(2)
Appendix A: What's Old in Core Data, Cocoa, Xcode, and Objective-C 441(2)
Declared Properties
441(1)
Required and Optional Methods in Protocols
442(1)
Storyboards in Interface Builder
442(1)
Ordered Relationships
442(1)
Index 443
Jesse Feiler is a developer, web designer, trainer, and author. He has been an Apple developer since 1985 and has worked with mobile devices starting with Apples Newton and continuing with the iOS products such as the iPhone, iPod touch, and iPad. Feilers database expertise includes mainframe databases such as DMS II (on Burroughs), DB2 (on IBM), and Oracle (on various platforms), as well as personal computer databases from dBase to the first versions of FileMaker. His database clients have included Federal Reserve Bank of New York; Young & Rubicam (advertising); and many small and nonprofit organizations, primarily in publishing, production, and management.

 

Feilers books include the following:





Sams Teach Yourself Objective-C in 24 Hours (Sams/Pearson) Data-Driven iOS Apps for iPad and iPhone with FileMaker Pro, Bento by FileMaker, and FileMaker Go (Sams/Pearson) Using FileMaker Bento (Sams/Pearson) iWork for Dummies (Wiley) Sams Teach Yourself Drupal in 24 Hours (Sams/Pearson) Get Rich with Apps! Your Guide to Reaching More Customers and Making Money NOW (McGraw-Hill) Database-Driven Web Sites (Harcourt) How to Do Everything with Web 2.0 Mashups (McGraw-Hill) The Bento Book (Sams/Pearson) FileMaker Pro In Depth (Sams/Pearson)

 

He is the author of MinutesMachine, the meeting management software for iPadget more details at champlainarts.com. A native of Washington, D.C., Feiler has lived in New York City and currently lives in Plattsburgh, NY. He can be reached at northcountryconsulting.com.