SlideShare a Scribd company logo
1 of 2
All You Need to Know about Core Data iPhone SDK


Core Data is a powerful Data Model framework, a framework for object management
and persistence. It helps developers to manage the lifecycle of objects and object
graphs. It can lower the memory overhead of application, increase responsiveness
and reduce code. It comes up with classes those are abstractions for normal
functions, including create, delete, select and update. It was ported from Mac OS X
to the iPhone with the 3.0 iPhone SDK release.

The simple reason for why Core Data is it allows developer to develop complicated
applications with very less code. To develop complicated applications, it takes far less
code and time than it would take without core data.

Core Data iPhone SDK Features:
1. Built-in management of undo and redo in addition to basic text editing
2. Automatic validation of property values
3. It maintains the consistency of relationships among objects
4. Is Organizing data in memory and in the user interface
5. Support for storing objects in external data cache
6. Grouping and filtering
7. It provides optional integration with Cocoa bindings to
8. It supports automatic user interface synchronization

Core Data objects:
1. Managed Object Model:
Managed Object Model is similar as the database schema. It is a class that contains
Entities that are stored in the database. Visual editor is used to set up what these
entities are in the database, what their attributes, and how they relate to each other
(relationships). However, it can also be done with code.
2. Managed Object Context:
Managed Object Context is a single object space in an application.
Its main responsibility is to manage a group of managed objects. It is also the most
important of all. Mainly, whenever developer needs to select objects, insert objects,
or delete objects, methods are called on this context.

Persistent Store Coordinator:
Core Data provides three types of disk-based persistent store—
1. XML (not available on iOS)
2. Atomic
3. SQLite and an in-memory store
Core Data also provides the binary store type as a built-in atomic store and also
provides Custom store types to create own atomic store types.
Persistent store coordinator is similar as the database connection. It act as mediate
between provided persistent store and the managed object context. Context can
access a model through this coordinator.


Core Data classes:
NSFetchrequest
NSMAngedRequest
NSMANAgerdObjectContext
NSManagedObjectModal
NS Persistent Store Coordinator
NS Perdicate

Core Data iPhone SDK Limitations
1. Core Data is not a database but a data store.
2. Core Data provides a structure for change tracking and management and for
storing objects to storage and retrieving them from storage.
3. Core Data does not remove the need to write code. But it provides a better way.
While it is possible create a small application only using the Xcode data modeling tool
and Interface Builder, but for more real-world &complicated applications developer
will need to write code.

Core Data iPhone SDK how it performs:
As Core Data is a rich framework for object management and persistence, it is
capable of dealing with large volumes of data(objects). For a very small & simple
application it may be add some overhead, however it adds important functionality.
With small overhead, even a simple application is able to do undo and redo,
validation, and provides the ability to save objects to store. As the complexity of an
application increases, so the proportionate overhead by Core Data decreases and at
the same time the benefit increases. But it needs consideration of memory
management and how to fetch data from a persistent store.


Spec India is a Custom Software Application Development and Software Solutions
Company based in Ahmedabad, India. Our Services includes iPhone Application
Development, Android Application Development, ORACLE, .Net, and Mobile
Computing.

More Related Content

Viewers also liked

Riesgos laborales según las normas de covenin
Riesgos laborales según las normas de covenin  Riesgos laborales según las normas de covenin
Riesgos laborales según las normas de covenin edinel19
 
HVP Country Node: Democratic Republic of Congo - Aimé Lumaka Zola
HVP Country Node: Democratic Republic of Congo - Aimé Lumaka ZolaHVP Country Node: Democratic Republic of Congo - Aimé Lumaka Zola
HVP Country Node: Democratic Republic of Congo - Aimé Lumaka ZolaHuman Variome Project
 

Viewers also liked (6)

Riesgos laborales según las normas de covenin
Riesgos laborales según las normas de covenin  Riesgos laborales según las normas de covenin
Riesgos laborales según las normas de covenin
 
Competencias digitales
Competencias digitalesCompetencias digitales
Competencias digitales
 
2016 cp dossier_presse
2016 cp dossier_presse2016 cp dossier_presse
2016 cp dossier_presse
 
Few common errors Indians make
Few common errors Indians makeFew common errors Indians make
Few common errors Indians make
 
DS.005.0.01.ETD
DS.005.0.01.ETDDS.005.0.01.ETD
DS.005.0.01.ETD
 
HVP Country Node: Democratic Republic of Congo - Aimé Lumaka Zola
HVP Country Node: Democratic Republic of Congo - Aimé Lumaka ZolaHVP Country Node: Democratic Republic of Congo - Aimé Lumaka Zola
HVP Country Node: Democratic Republic of Congo - Aimé Lumaka Zola
 

Recently uploaded

How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 

Recently uploaded (20)

How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 

All You Need to Know about Core Data iPhone SDK

  • 1. All You Need to Know about Core Data iPhone SDK Core Data is a powerful Data Model framework, a framework for object management and persistence. It helps developers to manage the lifecycle of objects and object graphs. It can lower the memory overhead of application, increase responsiveness and reduce code. It comes up with classes those are abstractions for normal functions, including create, delete, select and update. It was ported from Mac OS X to the iPhone with the 3.0 iPhone SDK release. The simple reason for why Core Data is it allows developer to develop complicated applications with very less code. To develop complicated applications, it takes far less code and time than it would take without core data. Core Data iPhone SDK Features: 1. Built-in management of undo and redo in addition to basic text editing 2. Automatic validation of property values 3. It maintains the consistency of relationships among objects 4. Is Organizing data in memory and in the user interface 5. Support for storing objects in external data cache 6. Grouping and filtering 7. It provides optional integration with Cocoa bindings to 8. It supports automatic user interface synchronization Core Data objects: 1. Managed Object Model: Managed Object Model is similar as the database schema. It is a class that contains Entities that are stored in the database. Visual editor is used to set up what these entities are in the database, what their attributes, and how they relate to each other (relationships). However, it can also be done with code. 2. Managed Object Context: Managed Object Context is a single object space in an application. Its main responsibility is to manage a group of managed objects. It is also the most important of all. Mainly, whenever developer needs to select objects, insert objects, or delete objects, methods are called on this context. Persistent Store Coordinator: Core Data provides three types of disk-based persistent store— 1. XML (not available on iOS) 2. Atomic 3. SQLite and an in-memory store Core Data also provides the binary store type as a built-in atomic store and also provides Custom store types to create own atomic store types. Persistent store coordinator is similar as the database connection. It act as mediate between provided persistent store and the managed object context. Context can access a model through this coordinator. Core Data classes: NSFetchrequest NSMAngedRequest NSMANAgerdObjectContext NSManagedObjectModal
  • 2. NS Persistent Store Coordinator NS Perdicate Core Data iPhone SDK Limitations 1. Core Data is not a database but a data store. 2. Core Data provides a structure for change tracking and management and for storing objects to storage and retrieving them from storage. 3. Core Data does not remove the need to write code. But it provides a better way. While it is possible create a small application only using the Xcode data modeling tool and Interface Builder, but for more real-world &complicated applications developer will need to write code. Core Data iPhone SDK how it performs: As Core Data is a rich framework for object management and persistence, it is capable of dealing with large volumes of data(objects). For a very small & simple application it may be add some overhead, however it adds important functionality. With small overhead, even a simple application is able to do undo and redo, validation, and provides the ability to save objects to store. As the complexity of an application increases, so the proportionate overhead by Core Data decreases and at the same time the benefit increases. But it needs consideration of memory management and how to fetch data from a persistent store. Spec India is a Custom Software Application Development and Software Solutions Company based in Ahmedabad, India. Our Services includes iPhone Application Development, Android Application Development, ORACLE, .Net, and Mobile Computing.