00 Beginning Core Data Intro · Available on both iOS and OS X Scales up to large data sets...

Preview:

Citation preview

Beginning Core Data

Introduction

Core Data

object graph management and persistence framework

Object Graphs

Human

name: Brian

Cat

name: Tabby

Dog

name: Bobo

Food

type: Dairy

Human

name: Jerry

Zombie

name: Tammy

friends

enemies

eats

Object Graphs

Other Frameworks (built-in)

NSKeyedArchiver NSUserDefaults SQLite(+ optional third-party wrappers)

Other Frameworks

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

The Basics

Model your data Add records Fetch records Core Data stack basics

More Core Data!

Relationships Predicates & Sorting Editing & Deleting …and more!

Challenge Time!

Recommended