SlideShare une entreprise Scribd logo
1  sur  10
Télécharger pour lire hors ligne
iOS Models: 
Core Data 
Boska Lee
Agenda 
• Core Data Features 
• Core Data Architecture 
• Magical Record
Core Data 
• Part of Cocoa API in Mac OSX 
• From OSX 10.4 and iOS 3.0 
• like Core Audio, Core Location ….etc.
Core Data Features 
• change tracking and undo support 
• lazy loading 
• automatic validation of property values 
• migration 
• ui integration 
• KVC,KVO
Core Data Architecture 
1. Managed Object Model 
2. Managed Object Context 
3. Persistent Store Coordinator 
4. Managed Object
Database vs Core Data 
Table Schema NSEntityDescription 
Table Record NSMangedObject 
Database Access NSPersistentStoreCoordinator 
Database Transaction NSManagedObjectContext
Magical Record 
! 
• Wrapper libraries provide some much needed 
syntactic sugar and convenience methods to 
Core Data's verbose and complicated APIs. 
• Inspired by Active Record 
• DRY
EZTABLE 
schema
Demo

Contenu connexe

Tendances

RavenDB Presentation
RavenDB PresentationRavenDB Presentation
RavenDB Presentation
Mark Rodseth
 

Tendances (20)

Scaling with Riak at Showyou
Scaling with Riak at ShowyouScaling with Riak at Showyou
Scaling with Riak at Showyou
 
Introduction to CosmosDB - Azure Bootcamp 2018
Introduction to CosmosDB - Azure Bootcamp 2018Introduction to CosmosDB - Azure Bootcamp 2018
Introduction to CosmosDB - Azure Bootcamp 2018
 
CosmosDb for beginners
CosmosDb for beginnersCosmosDb for beginners
CosmosDb for beginners
 
Rolling With Riak
Rolling With RiakRolling With Riak
Rolling With Riak
 
WebAPI::DBIC - Automated RESTful API's
WebAPI::DBIC - Automated RESTful API'sWebAPI::DBIC - Automated RESTful API's
WebAPI::DBIC - Automated RESTful API's
 
James Turner (Caplin) - Enterprise HTML5 Patterns
James Turner (Caplin) - Enterprise HTML5 PatternsJames Turner (Caplin) - Enterprise HTML5 Patterns
James Turner (Caplin) - Enterprise HTML5 Patterns
 
Cosmosdb graph
Cosmosdb graphCosmosdb graph
Cosmosdb graph
 
Micro strategy 7i
Micro strategy 7iMicro strategy 7i
Micro strategy 7i
 
The Evolution of Open Source Databases
The Evolution of Open Source DatabasesThe Evolution of Open Source Databases
The Evolution of Open Source Databases
 
Docker y azure container service
Docker y azure container serviceDocker y azure container service
Docker y azure container service
 
Review of KohaCon18
Review of KohaCon18Review of KohaCon18
Review of KohaCon18
 
Working with Data in Service Workers
Working with Data in Service WorkersWorking with Data in Service Workers
Working with Data in Service Workers
 
Microservices using .Net core
Microservices using .Net coreMicroservices using .Net core
Microservices using .Net core
 
OSGi Community Event 2010 - Modular Applications on a Data Grid - A Case Stud...
OSGi Community Event 2010 - Modular Applications on a Data Grid - A Case Stud...OSGi Community Event 2010 - Modular Applications on a Data Grid - A Case Stud...
OSGi Community Event 2010 - Modular Applications on a Data Grid - A Case Stud...
 
THE POWER OF OPENDJ AND REST
THE POWER OF OPENDJ AND RESTTHE POWER OF OPENDJ AND REST
THE POWER OF OPENDJ AND REST
 
Directories for the REST of Us: REST to LDAP in OpenDJ 2.6
Directories for the REST of Us: REST to LDAP in OpenDJ 2.6Directories for the REST of Us: REST to LDAP in OpenDJ 2.6
Directories for the REST of Us: REST to LDAP in OpenDJ 2.6
 
RavenDB Presentation
RavenDB PresentationRavenDB Presentation
RavenDB Presentation
 
MongoDB SF Ruby
MongoDB SF RubyMongoDB SF Ruby
MongoDB SF Ruby
 
Updating the Globus Connect Architecture - ARCC Workshop at PEARC17
Updating the Globus Connect Architecture - ARCC Workshop at PEARC17Updating the Globus Connect Architecture - ARCC Workshop at PEARC17
Updating the Globus Connect Architecture - ARCC Workshop at PEARC17
 
MongoDB - Getting Started
MongoDB  - Getting StartedMongoDB  - Getting Started
MongoDB - Getting Started
 

Similaire à 【EDD Workshop@140829】iOS Models-Core Data_by Boska-Lee

A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?
A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?
A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?
DATAVERSITY
 
SeaJUG May 2012 mybatis
SeaJUG May 2012 mybatisSeaJUG May 2012 mybatis
SeaJUG May 2012 mybatis
Will Iverson
 

Similaire à 【EDD Workshop@140829】iOS Models-Core Data_by Boska-Lee (20)

A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?
A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?
A Case Study of NoSQL Adoption: What Drove Wordnik Non-Relational?
 
CloudStack Object Storage Framework & Demo
CloudStack Object Storage Framework & DemoCloudStack Object Storage Framework & Demo
CloudStack Object Storage Framework & Demo
 
A Presentation on MongoDB Introduction - Habilelabs
A Presentation on MongoDB Introduction - HabilelabsA Presentation on MongoDB Introduction - Habilelabs
A Presentation on MongoDB Introduction - Habilelabs
 
Electron, databases, and RxDB
Electron, databases, and RxDBElectron, databases, and RxDB
Electron, databases, and RxDB
 
Java
JavaJava
Java
 
Urbanesia - Development History
Urbanesia - Development HistoryUrbanesia - Development History
Urbanesia - Development History
 
Introduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAsIntroduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAs
 
04 integrate entityframework
04 integrate entityframework04 integrate entityframework
04 integrate entityframework
 
Data Modeling for NoSQL
Data Modeling for NoSQLData Modeling for NoSQL
Data Modeling for NoSQL
 
Entity Framework 7: What's New?
Entity Framework 7: What's New?Entity Framework 7: What's New?
Entity Framework 7: What's New?
 
The What and Why of NoSql
The What and Why of NoSqlThe What and Why of NoSql
The What and Why of NoSql
 
DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matia...
DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matia...DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matia...
DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matia...
 
Maria db 10 and the mariadb foundation(colin)
Maria db 10 and the mariadb foundation(colin)Maria db 10 and the mariadb foundation(colin)
Maria db 10 and the mariadb foundation(colin)
 
SeaJUG May 2012 mybatis
SeaJUG May 2012 mybatisSeaJUG May 2012 mybatis
SeaJUG May 2012 mybatis
 
Entity Framework for Cross platform apps
Entity Framework for Cross platform appsEntity Framework for Cross platform apps
Entity Framework for Cross platform apps
 
CosmosDB.pptx
CosmosDB.pptxCosmosDB.pptx
CosmosDB.pptx
 
NoSql Data Management
NoSql Data ManagementNoSql Data Management
NoSql Data Management
 
Training on iOS app development - Samesh Swongamikha & Neetin Sharma
Training on iOS app development - Samesh Swongamikha & Neetin SharmaTraining on iOS app development - Samesh Swongamikha & Neetin Sharma
Training on iOS app development - Samesh Swongamikha & Neetin Sharma
 
CORE JAVA & ADVANCE JAVA
CORE JAVA & ADVANCE JAVACORE JAVA & ADVANCE JAVA
CORE JAVA & ADVANCE JAVA
 
Oracle dba 12c training syllabus
Oracle dba 12c training syllabusOracle dba 12c training syllabus
Oracle dba 12c training syllabus
 

Plus de EZTABLE

天下雜誌:外資金童的第二人生
天下雜誌:外資金童的第二人生天下雜誌:外資金童的第二人生
天下雜誌:外資金童的第二人生
EZTABLE
 
Udn 20120508 c6
Udn 20120508 c6Udn 20120508 c6
Udn 20120508 c6
EZTABLE
 
EZTABLE Udn 20100528
EZTABLE Udn 20100528EZTABLE Udn 20100528
EZTABLE Udn 20100528
EZTABLE
 
EZTBALE Hksilicon 20120104
EZTBALE Hksilicon 20120104EZTBALE Hksilicon 20120104
EZTBALE Hksilicon 20120104
EZTABLE
 
EZTBALE Sina.com 20120510
EZTBALE Sina.com 20120510EZTBALE Sina.com 20120510
EZTBALE Sina.com 20120510
EZTABLE
 
EZTABLE She.com.tw citta bella 20120511
EZTABLE She.com.tw citta bella 20120511EZTABLE She.com.tw citta bella 20120511
EZTABLE She.com.tw citta bella 20120511
EZTABLE
 
EZTABLE citta bella website 20120309
EZTABLE citta bella website 20120309 EZTABLE citta bella website 20120309
EZTABLE citta bella website 20120309
EZTABLE
 
EZTBALE Inside 20110326
EZTBALE Inside 20110326 EZTBALE Inside 20110326
EZTBALE Inside 20110326
EZTABLE
 
Businessnext 20111011
Businessnext 20111011Businessnext 20111011
Businessnext 20111011
EZTABLE
 

Plus de EZTABLE (17)

【EDD Workshop@140822】淺談如何開始設計之專注美感三十年
【EDD Workshop@140822】淺談如何開始設計之專注美感三十年【EDD Workshop@140822】淺談如何開始設計之專注美感三十年
【EDD Workshop@140822】淺談如何開始設計之專注美感三十年
 
【EDD Workshop@140815】Head first grid system
【EDD Workshop@140815】Head first grid system【EDD Workshop@140815】Head first grid system
【EDD Workshop@140815】Head first grid system
 
【Edd workshop@140808】tdd spies, stubs, and mocks hao-kang den
【Edd workshop@140808】tdd spies, stubs, and mocks hao-kang den【Edd workshop@140808】tdd spies, stubs, and mocks hao-kang den
【Edd workshop@140808】tdd spies, stubs, and mocks hao-kang den
 
【Edd workshop@140808】eztable design library kc liu
【Edd workshop@140808】eztable design library kc liu【Edd workshop@140808】eztable design library kc liu
【Edd workshop@140808】eztable design library kc liu
 
【Edd workshop@140718】ios 101 for web developer zakk (yu-chen ho)
【Edd workshop@140718】ios 101 for web developer  zakk (yu-chen ho)【Edd workshop@140718】ios 101 for web developer  zakk (yu-chen ho)
【Edd workshop@140718】ios 101 for web developer zakk (yu-chen ho)
 
【Edd workshop@140725】TDD introduction_Andy Huang
【Edd workshop@140725】TDD introduction_Andy Huang 【Edd workshop@140725】TDD introduction_Andy Huang
【Edd workshop@140725】TDD introduction_Andy Huang
 
【EDD Workshop@140718】eztable architecture hao kang den
【EDD Workshop@140718】eztable architecture hao kang den【EDD Workshop@140718】eztable architecture hao kang den
【EDD Workshop@140718】eztable architecture hao kang den
 
Cheers 快樂工作人
Cheers 快樂工作人Cheers 快樂工作人
Cheers 快樂工作人
 
天下雜誌:外資金童的第二人生
天下雜誌:外資金童的第二人生天下雜誌:外資金童的第二人生
天下雜誌:外資金童的第二人生
 
Udn 20120508 c6
Udn 20120508 c6Udn 20120508 c6
Udn 20120508 c6
 
EZTABLE Udn 20100528
EZTABLE Udn 20100528EZTABLE Udn 20100528
EZTABLE Udn 20100528
 
EZTBALE Hksilicon 20120104
EZTBALE Hksilicon 20120104EZTBALE Hksilicon 20120104
EZTBALE Hksilicon 20120104
 
EZTBALE Sina.com 20120510
EZTBALE Sina.com 20120510EZTBALE Sina.com 20120510
EZTBALE Sina.com 20120510
 
EZTABLE She.com.tw citta bella 20120511
EZTABLE She.com.tw citta bella 20120511EZTABLE She.com.tw citta bella 20120511
EZTABLE She.com.tw citta bella 20120511
 
EZTABLE citta bella website 20120309
EZTABLE citta bella website 20120309 EZTABLE citta bella website 20120309
EZTABLE citta bella website 20120309
 
EZTBALE Inside 20110326
EZTBALE Inside 20110326 EZTBALE Inside 20110326
EZTBALE Inside 20110326
 
Businessnext 20111011
Businessnext 20111011Businessnext 20111011
Businessnext 20111011
 

Dernier

Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
chumtiyababu
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 

Dernier (20)

Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 

【EDD Workshop@140829】iOS Models-Core Data_by Boska-Lee

  • 1. iOS Models: Core Data Boska Lee
  • 2. Agenda • Core Data Features • Core Data Architecture • Magical Record
  • 3. Core Data • Part of Cocoa API in Mac OSX • From OSX 10.4 and iOS 3.0 • like Core Audio, Core Location ….etc.
  • 4. Core Data Features • change tracking and undo support • lazy loading • automatic validation of property values • migration • ui integration • KVC,KVO
  • 5. Core Data Architecture 1. Managed Object Model 2. Managed Object Context 3. Persistent Store Coordinator 4. Managed Object
  • 6. Database vs Core Data Table Schema NSEntityDescription Table Record NSMangedObject Database Access NSPersistentStoreCoordinator Database Transaction NSManagedObjectContext
  • 7.
  • 8. Magical Record ! • Wrapper libraries provide some much needed syntactic sugar and convenience methods to Core Data's verbose and complicated APIs. • Inspired by Active Record • DRY
  • 10. Demo