Core Data by Tutorials (Eighth Edition)


Book Description

Learn Core Data With Swift!Take control of your data in iOS apps using Core Data, through a series of high quality hands-on tutorials.Start with the basics like setting up your own Core Data Stack all the way to advanced topics like migration, performance, multithreading, and more! By the end of this book, you'll have hands-on experience with Core Data and will be ready to use it in your own apps.Who This Book Is For:This book is for intermediate iOS developers who already know the basics of iOS and Swift development but want to learn how to use Core Data to save data in their apps.Topics Covered in Core Data by Tutorials:Your First Core Data App: You'll click File\New Project and write a Core Data app from scratch!NSManagedObject Subclasses: Learn how to create your own subclasses of NSManagedObject - the base data storage class in Core Data.The Core Data Stack: Learn how the main objects in Core Data work together, so you can move from the starter Xcode template to your own system.Intermediate Fetching: This chapter covers how to fetch data with Core Data - fetch requests, predicates, sorting and asynchronous fetching.NSFetchedResultsController: Learn how to make Core Data play nicely with table views using NSFetchedResultsController!Versioning and Migration: In this chapter, you'll learn how to migrate your user's data as they upgrade through different versions of your data model.Unit Tests: In this chapter, you'll learn how to set up a test environment for Core Data and see examples of how to test your models.Measuring and Boosting Performance: Learn how to measure your app's performance with various Xcode tools and deal with slow spots in your code.Multiple Managed Object Contexts: Learn how multiple managed object contexts can improve performance and make for cleaner code.Core Data and CloudKit: Learn how to synchronize Core Data across all of a user's devices.




Core Data in Swift


Book Description

Core Data is intricate, powerful, and necessary. Discover the powerful capabilities integrated into Core Data, and how to use Core Data in your iOS and OS X projects. All examples are current for OS X El Capitan, iOS 9, and the latest release of Core Data. All the code is written in Swift, including numerous examples of how best to integrate Core Data with Apple's newest programming language. Core Data expert Marcus Zarra walks you through a fully developed application based around the Core Data APIs. You'll build on this application throughout the book, learning key Core Data elements such as NSPredicate, NSFetchRequest, thread management, and memory management. Start with the basics of Core Data and learn how to use it to develop your application. Then delve deep into the API details. Explore how to get Core Data integrated into your application properly, and work with this flexible API to create convenience methods to improve your application's maintainability. Reduce your migration difficulties, integrate your Core Data app with iCloud and Watch Kit, and use Core Data in a queue-based environment. By the end of the book, you'll have built a full-featured application, gained a complete understanding of Core Data, and learned how to integrate your application into the iPhone/iPad platform. This book is based on Core Data in Objective-C, Third Edition. It focuses on Swift and adds an additional chapter on how to integrate Core Data with an efficient network implementation, with best practices on how to load and pre-load data into your Swift application. What You Need: Mac OS X El Capitan and iOS 9 and a basic working knowledge of Swift




Core Data Services for ABAP


Book Description

If you're developing ABAP applications, you need CDS expertise. This book is your all-in-one guide, updated for SAP S/4HANA 2023! Start by learning to create and edit CDS views. Walk through CDS syntax and see how to define associations and annotations. Further refine your model by implementing access controls, service bindings, and table functions. Understand the CDS-based virtual data model, and then follow step-by-step instructions to model analytical and transactional applications. From modeling to testing to troubleshooting, this is the only book you need! In this book, you'll learn about: a. Creating Data Models Create data models using CDS! Learn the ins and outs of CDS view syntax, from key fields to joins to data types and beyond. Define associations to establish relationships, use annotations to enrich your logic, implement conditional logic to control access, and more. b. Modeling Applications See how CDS views support a new application architecture. Model analytical applications by defining analytical views and queries; then use CDS for transactional applications based on the ABAP RESTful application programming model. c. Extending, Testing, and Troubleshooting Put the finishing touches on your CDS data models. Extend and enhance CDS views and transactional models, develop automated tests using the test double framework, and troubleshoot common problems. Highlights include: 1) Data modeling 2) Application modeling 3) Associations 4) Annotations 5) Access controls 6) Business services 7) SAP HANA functions 8) Virtual data model 9) Analytical and transactional applications 10) Hierarchies 11) Extensibility 12) Testing and troubleshooting




Core Data


Book Description

Core Data best practices by example: from simple persistency to multithreading and syncing This book strives to give you clear guidelines for how to get the most out of Core Data while avoiding the pitfalls of this flexible and powerful framework. We start with a simple example app and extend it step by step as we talk about relationships, advanced data types, concurrency, syncing, and many other topics. Later on, we go well beyond what's needed for the basic example app. We'll discuss in depth how Core Data works behind the scenes, how to get great performance, the trade-offs between different Core Data setups, and how to debug and profile your Core Data code. All code samples in this book are written in Swift. We show how you can leverage Swift's language features to write elegant and safe Core Data code. We expect that you're already familiar with Swift and iOS, but both newcomers and experienced Core Data developers will find a trove of applicable information and useful patterns.




Core Data


Book Description

Core Data best practices by example: from simple persistency to multithreading and syncing This book strives to give you clear guidelines for how to get the most out of Core Data while avoiding the pitfalls of this flexible and powerful framework. We start with a simple example app and extend it step by step as we talk about relationships, advanced data types, concurrency, syncing, and many other topics. Later on, we go well beyond what's needed for the basic example app. We'll discuss in depth how Core Data works behind the scenes, how to get great performance, the trade-offs between different Core Data setups, and how to debug and profile your Core Data code. All code samples in this book are written in Swift. We show how you can leverage Swift's language features to write elegant and safe Core Data code. We expect that you're already familiar with Swift and iOS, but both newcomers and experienced Core Data developers will find a trove of applicable information and useful patterns.




Learning Core Data for iOS


Book Description

Get Started Fast with iOS 7 Core Data App Development Covers iOS 7 and Xcode 5 This is the first Core Data book to fully reflect Apple’s latest platform innovations, including its dramatic recent improvements to iCloud support. Hands-on from start to finish, it teaches you step-by-step as you create a modern data-driven iOS app using Storyboards, ARC, iOS 7, and Xcode 5. Tim Roadley introduces new patterns and best practices designed to overcome the frustrations of Core Data development. One step at a time, you’ll build and extend your skills--even mastering advanced techniques such as complex model migration, deep copy, background processing, and integration with Dropbox, StackMob, and iCloud. Downloadable versions of this book’s main project are provided with each chapter, so you can see exactly what your app project should look like--and get cookbook-style code for your own projects. Chapter exercises help you explore even further, whether you’re a self-learner or a student in an iOS development course. If you’re an experienced iOS developer, this guide brings together all the skills, tools, code, and patterns you need to add powerful data management capabilities to any app--quickly, easily, and painlessly. Coverage includes the following: Understanding Core Data Adding Core Data to an existing project Designing, upgrading, and migrating data models (automatically and manually with progress indication) Populating views with data, including table-views and picker-views Preloading a “default data” persistent store from XML Deep-copying from one persistent store to another Performance tuning with Instruments, using large photos as the example Background processing, using thumbnail generation as the example Efficient search Seamlessly backing up and restoring with Dropbox Stable integration with iCloud--with full support for multiple accounts, seeding, and de-duplication Web service integration with StackMob




Core Data


Book Description

Core Data is Apple's recommended way to persist data: it's easy to use, built-in, and integrated with iCloud. It's intricate, powerful, and necessary--and this book is your guide to harnessing its power. Learn fundamental Core Data principles such as thread and memory management, discover how to use Core Data in your iPhone, iPad, and OS X projects by using NSPredicate to filter data, and see how to add iCloud to your applications. Cocoa expert Marcus Zarra walks you through developing a full-featured application based around the Core Data APIs. You'll build up a single application throughout the book, learning key Core Data principles such as NSPredicate, thread management, and memory management. Geared toward intermediate to advanced developers, this book gets you comfortable with the basics of Core Data. Then you'll delve deep into the details of the API. You'll explore not only how to get Core Data integrated into your application properly, but even better, how to work with the API's flexibility to create convenience methods to improve your application's maintainability. Learn how to reduce your number of mapping models, integrate your Core Data app with Spotlight and Quick Look, connect your application with sync services, and find out how to use Core Data in a multithreaded environment. By the end of the book, you'll have built a full-featured application, gained a complete understanding of Core Data, and learned how to integrate your application into the iPhone/iPad platform. This second edition updates all examples for OS X Mountain Lion and iOS 6, gets you up to speed on changes in multithreading, and provides new chapters covering iCloud and NSFetchedResultsController. What You NeedMac OS X Mountain Lion and iOS 6. This book is for intermediate-level iOS developers.




Core Data with SwiftUI


Book Description

Quick Guides for Masterminds are excerpts from our best-selling books SwiftUI for Masterminds, UIKit for Masterminds, and HTML5 for Masterminds, providing a cost-effective alternative to getting the information you need. Description With this guide, you will learn how to store data in a database with Core Data and the SwiftUI framework. After reading this guide, you will know how to work with the Core Data framework, how to create and manage a database, and how to store, search, and retrieve information from the user's device. Swift 5.7 | iOS 16 | Xcode 14 Table of Contents CORE DATA Data Model Core Data Stack Managed Objects Fetch Request Asynchronous Access Core Data Application Previews Sort Descriptors Predicates Modifying Objects Deleting Objects Custom Fetch Requests Sections To-Many Relationships This guide assumes that you have a basic knowledge of app development, Xcode, and the Swift language. You should also know how to create and display basic SwiftUI views. For a complete course on app development with SwiftUI, read our book SwiftUI for Masterminds. This guide is a collection of excerpts from the book SwiftUI for Masterminds. The information included in this guide will help you understand a particular aspect of app development, but it will not teach you everything you need to know to develop an app for Apple devices. If you are looking for a complete course on app development with SwiftUI, read our book SwiftUI for Masterminds. For more information, visit our website at www.formasterminds.com.




Core Data with UIKit


Book Description

Quick Guides for Masterminds are excerpts from our best-selling books SwiftUI for Masterminds, UIKit for Masterminds, and HTML5 for Masterminds, providing a cost-effective alternative to getting the information you need. Description With this guide, you will learn how to store data in a database with Core Data and the UIKit framework. After reading this guide, you will know how to work with the Core Data framework, how to create and manage a database, and how to store, search, and retrieve information from the user's device. Swift 5.6 | iOS 15 | Xcode 13 Table of Contents CORE DATA Data Model Core Data Stack Managed Objects Asynchronous Access Storing Objects Counting Objects Predicates Sort Descriptors Modifying Objects Deleting Objects Fetched Results Controller Search Sections To-Many Relationships This guide assumes that you have a basic knowledge of app development, Xcode, and the Swift language. You should also know how to create and display Table Views. For a complete course on app development with UIKit, read our book UIKit for Masterminds. This guide is a collection of excerpts from the book UIKit for Masterminds. The information included in this guide will help you understand a particular aspect of app development, but it will not teach you everything you need to know to develop an app for Apple devices. If you are looking for a complete course on app development with UIKit, read our book UIKit for Masterminds. For more information, visit our website at www.formasterminds.com.




Core Data for iOS


Book Description

Today, virtually every non-trivial iPhone and iPad app must manage data—quickly, smoothly, reliably, and with minimal impact on the CPU to conserve battery life. Core Data, Apple’s ready-made data persistence layer, can help you achieve all these goals. In Core Data for iOS, two leading iOS developers teach you the entire Core Data framework from the ground up. Writing for intermediate-to-advanced iOS developers, Tim Isted and Tom Harrington thoroughly explain how Core Data is used on iOS devices, introduce each of its primary classes, and show how they interact to provide amazing functionality with minimal configuration. You’ll learn how to store, fetch, and validate data; provide it efficiently to views; and much more. Isted and Harrington first give you a firm grounding in the technology, and then present real-world examples. They present multiple sample projects, as well as a start-to-finish, chapter-length case study. Coverage includes • Understanding Core Data’s features, classes, and interactions • Using Core Data in MVC-based iOS app development • Mapping relational data to object models, and building them with Xcode 4’s Data Modeler • Working with managed objects and using UITableView to display them • Creating predicates to match numbers, data, and objects • Maintaining compatibility across versions of an app’s data model • Tracking managed object contexts across view controllers • Using Core Data’s automatic Undo functionality • Integrating abstract entities, entity inheritance, and multiple view controllers into a complete app • Optimizing for iOS devices’ tight memory limits • Diagnosing and fixing common Core Data problems Introducing Addison-Wesley’s new Core Frameworks Series, written for experienced iOS developers by world-class Mac and iOS developers, these are the first comprehensive, code-rich reference guides to Apple’s Core Frameworks.