SlideShare a Scribd company logo
Core Data – I
• History
• Fundamentals
• Under the Hood
• Demo
Enterprise Object
Framework
History -wiki
• Early 1990, NeXT created an Abstraction above
databases (DBKit-92)
• DBKit failed, in 94 a complete rewrite came as
form of EOF (4 people team!) – read only
• EOF2.0 in 95 – Context Editing
• EOF was useful for WWW and web apps
• In 96 first OO webserver WebObjects launched
with EOF at its heart
• 2005, EOF returns to OSX Tiger as Core Data
• June 2009 Released for iPhone OS 3.0
EOF -wiki
• Database tables are mapped to classes.
• Database columns are mapped to class
attributes.
• Database rows are mapped to objects (or class
instances)
• Can leverage inheritance
• EO is a class which models a physical or
conceptual object in the business domain.
Fundamentals
What is Core Data –Apple Doc.
• Core Data is a schema-driven object graph
management and persistence framework.
Fundamentally, Core Data helps you to save
model objects (in the sense of the model-view-
controller design pattern) to a file and get
them back again. This is similar to archiving,
but Core Data offers much more than that.
What is Core Data –Apple Doc.
• Provides an infrastructure for managing all the
changes to your model objects. This gives you
automatic support for undo and redo, and for
maintaining reciprocal relationships between
objects.
What is Core Data –Apple Doc.
• Allows you to keep just a subset of your model
objects in memory at any given time. This is
especially important on iOS where conserving
memory is critical.
• Allows you to maintain disjoint sets of edits of
your objects. This is useful if you want to, for
example, allow the user to make edits in one
view that may be discarded without affecting
data displayed in another view.
What is Core Data –Apple Doc.
• Uses a schema to describe the model objects.
You define the principal features of your model
classes—including the relationships between
them—in a GUI-based editor. This provides a
wealth of basic functionality “for free,”
including setting of default values and attribute
value validation.
What is Core Data –Apple Doc.
• Has an infrastructure for data store versioning
and migration. This lets you easily upgrade an
old version of the user’s file to the current
version.
Core Data Components
User
Managed Object Context
(managed object) (managed
object)
Persistent Store
Coordinator
Storage Storage Storage
Initialization
Data
Model
(.momd)
Persistent Sore
(sqlite/xml...)
Managed
Object
Context
In Action
User
Code
NSFetchRequest
MOMOC
Persistent Sore
Coordinator
n1
Persistent Sore momd
Under the Hood
• Core Data applications requires an Object
Model (NSManagedObjectModel)
– Model defines entities (NSEntityDescription)
Entities have three kind of Properties
(NSPropertyDescription):
• Attributes (NSAttributeDescription)
• Relationships (NSRelationshipDescription)
• Fetched Properties (NSFetchedPropertyDescription)
Demo

More Related Content

PPTX
02. membuat database
PPT
Sqlite
PPTX
SQLite database in android
PPT
SQLITE Android
PDF
Persistence on iOS
PPT
Sq lite database
PPTX
SQLite - Overview
PDF
Introduction to SQLite: The Most Popular Database in the World
02. membuat database
Sqlite
SQLite database in android
SQLITE Android
Persistence on iOS
Sq lite database
SQLite - Overview
Introduction to SQLite: The Most Popular Database in the World

What's hot (19)

PPTX
Using entity framework core in .net
PDF
Splitgraph: AHL talk
PPTX
Interface database metadata
PPTX
Sqlite
PPTX
A brief introduction to SQLite PPT
PPTX
Entity Framework Database and Code First
PPTX
Hsqldb tutorial
PPTX
Data servers
PPTX
Database system
PPTX
Hsqldb tutorial
PPT
Php connectivitywithmysql
PDF
Persitance Data with sqlite
PDF
Mysql
PPTX
Entity framework code first
PPTX
Oleksandr Medvediev - Content delivery tools in Drupal 8.
PDF
MySQL Cluster Schema management (2014)
PDF
MySQL Cluster page management (2014)
PPTX
U-SQL Intro (SQLBits 2016)
PDF
Learn Entity Framework in a day with Code First, Model First and Database First
Using entity framework core in .net
Splitgraph: AHL talk
Interface database metadata
Sqlite
A brief introduction to SQLite PPT
Entity Framework Database and Code First
Hsqldb tutorial
Data servers
Database system
Hsqldb tutorial
Php connectivitywithmysql
Persitance Data with sqlite
Mysql
Entity framework code first
Oleksandr Medvediev - Content delivery tools in Drupal 8.
MySQL Cluster Schema management (2014)
MySQL Cluster page management (2014)
U-SQL Intro (SQLBits 2016)
Learn Entity Framework in a day with Code First, Model First and Database First
Ad

Similar to Pune-Cocoa: Core data - I (20)

PDF
Iphone programming: Core Data Tutorial for iOS
PPTX
Entity framework introduction sesion-1
PPTX
Hibernate tutorial
PPTX
Laravel ppt
PPT
Entity Framework Core (EF Core) Power Point Slide Show
PPTX
An Introduction To Oracle Database
PPTX
The oracle database architecture
PDF
IBM File Net P8
PPTX
Hibernate in XPages
PPTX
12_Data_Storage_Part_2.pptx
PDF
UNIT 5- Other Databases.pdf
PPTX
BackboneJS
PDF
Data Management Evolution of the data management systems
PPTX
04 integrate entityframework
PPTX
The CoFX Data Model
PPTX
Entity framework
PPTX
Ef overview
PPT
PDF
In Memory Database Essay
PPT
Database systems introduction
Iphone programming: Core Data Tutorial for iOS
Entity framework introduction sesion-1
Hibernate tutorial
Laravel ppt
Entity Framework Core (EF Core) Power Point Slide Show
An Introduction To Oracle Database
The oracle database architecture
IBM File Net P8
Hibernate in XPages
12_Data_Storage_Part_2.pptx
UNIT 5- Other Databases.pdf
BackboneJS
Data Management Evolution of the data management systems
04 integrate entityframework
The CoFX Data Model
Entity framework
Ef overview
In Memory Database Essay
Database systems introduction
Ad

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Encapsulation theory and applications.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Spectroscopy.pptx food analysis technology
PPTX
A Presentation on Artificial Intelligence
PPT
Teaching material agriculture food technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation_ Review paper, used for researhc scholars
“AI and Expert System Decision Support & Business Intelligence Systems”
Diabetes mellitus diagnosis method based random forest with bat algorithm
Per capita expenditure prediction using model stacking based on satellite ima...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Network Security Unit 5.pdf for BCA BBA.
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
MIND Revenue Release Quarter 2 2025 Press Release
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Encapsulation theory and applications.pdf
Unlocking AI with Model Context Protocol (MCP)
Spectroscopy.pptx food analysis technology
A Presentation on Artificial Intelligence
Teaching material agriculture food technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Dropbox Q2 2025 Financial Results & Investor Presentation

Pune-Cocoa: Core data - I

  • 2. • History • Fundamentals • Under the Hood • Demo
  • 4. History -wiki • Early 1990, NeXT created an Abstraction above databases (DBKit-92) • DBKit failed, in 94 a complete rewrite came as form of EOF (4 people team!) – read only • EOF2.0 in 95 – Context Editing • EOF was useful for WWW and web apps • In 96 first OO webserver WebObjects launched with EOF at its heart • 2005, EOF returns to OSX Tiger as Core Data • June 2009 Released for iPhone OS 3.0
  • 5. EOF -wiki • Database tables are mapped to classes. • Database columns are mapped to class attributes. • Database rows are mapped to objects (or class instances) • Can leverage inheritance • EO is a class which models a physical or conceptual object in the business domain.
  • 7. What is Core Data –Apple Doc. • Core Data is a schema-driven object graph management and persistence framework. Fundamentally, Core Data helps you to save model objects (in the sense of the model-view- controller design pattern) to a file and get them back again. This is similar to archiving, but Core Data offers much more than that.
  • 8. What is Core Data –Apple Doc. • Provides an infrastructure for managing all the changes to your model objects. This gives you automatic support for undo and redo, and for maintaining reciprocal relationships between objects.
  • 9. What is Core Data –Apple Doc. • Allows you to keep just a subset of your model objects in memory at any given time. This is especially important on iOS where conserving memory is critical. • Allows you to maintain disjoint sets of edits of your objects. This is useful if you want to, for example, allow the user to make edits in one view that may be discarded without affecting data displayed in another view.
  • 10. What is Core Data –Apple Doc. • Uses a schema to describe the model objects. You define the principal features of your model classes—including the relationships between them—in a GUI-based editor. This provides a wealth of basic functionality “for free,” including setting of default values and attribute value validation.
  • 11. What is Core Data –Apple Doc. • Has an infrastructure for data store versioning and migration. This lets you easily upgrade an old version of the user’s file to the current version.
  • 12. Core Data Components User Managed Object Context (managed object) (managed object) Persistent Store Coordinator Storage Storage Storage
  • 15. Under the Hood • Core Data applications requires an Object Model (NSManagedObjectModel) – Model defines entities (NSEntityDescription) Entities have three kind of Properties (NSPropertyDescription): • Attributes (NSAttributeDescription) • Relationships (NSRelationshipDescription) • Fetched Properties (NSFetchedPropertyDescription)
  • 16. Demo

Editor's Notes

  • #5: Legacy databases can be easily wrapped in EOF
  • #6: Legacy databases can be easily wrapped in EOF
  • #16: NSManagedObjectModel has references to zero or more NSEntityDescription objects. Each NSEntityDescription has references to zero or more NSPropertyDescription objects. NSPropertyDescription is an abstract class with three concrete implementations This small set of classes is enough to define any object model you will use when working on your Core Data projects.