10
Beginning Core Data Introduction

00 Beginning Core Data Intro · Available on both iOS and OS X Scales up to large data sets Efficient memory usage. The Basics Model your data Add records Fetch records Core Data

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 00 Beginning Core Data Intro · Available on both iOS and OS X Scales up to large data sets Efficient memory usage. The Basics Model your data Add records Fetch records Core Data

Beginning Core Data

Introduction

Page 2: 00 Beginning Core Data Intro · Available on both iOS and OS X Scales up to large data sets Efficient memory usage. The Basics Model your data Add records Fetch records Core Data

Core Data

object graph management and persistence framework

Page 3: 00 Beginning Core Data Intro · Available on both iOS and OS X Scales up to large data sets Efficient memory usage. The Basics Model your data Add records Fetch records Core Data

Object Graphs

Human

name: Brian

Cat

name: Tabby

Dog

name: Bobo

Food

type: Dairy

Human

name: Jerry

Zombie

name: Tammy

friends

enemies

eats

Page 4: 00 Beginning Core Data Intro · Available on both iOS and OS X Scales up to large data sets Efficient memory usage. The Basics Model your data Add records Fetch records Core Data

Object Graphs

Page 5: 00 Beginning Core Data Intro · Available on both iOS and OS X Scales up to large data sets Efficient memory usage. The Basics Model your data Add records Fetch records Core Data

Other Frameworks (built-in)

NSKeyedArchiver NSUserDefaults SQLite(+ optional third-party wrappers)

Page 6: 00 Beginning Core Data Intro · Available on both iOS and OS X Scales up to large data sets Efficient memory usage. The Basics Model your data Add records Fetch records Core Data

Other Frameworks

Page 7: 00 Beginning Core Data Intro · Available on both iOS and OS X Scales up to large data sets Efficient memory usage. The Basics Model your data Add records Fetch records Core Data

Why Core Data?

Tools built in to Xcode and Instruments. Available on both iOS and OS X Scales up to large data sets Efficient memory usage

Page 8: 00 Beginning Core Data Intro · Available on both iOS and OS X Scales up to large data sets Efficient memory usage. The Basics Model your data Add records Fetch records Core Data

The Basics

Model your data Add records Fetch records Core Data stack basics

Page 9: 00 Beginning Core Data Intro · Available on both iOS and OS X Scales up to large data sets Efficient memory usage. The Basics Model your data Add records Fetch records Core Data

More Core Data!

Relationships Predicates & Sorting Editing & Deleting …and more!

Page 10: 00 Beginning Core Data Intro · Available on both iOS and OS X Scales up to large data sets Efficient memory usage. The Basics Model your data Add records Fetch records Core Data

Challenge Time!