Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8574103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:24:00+00:00 2026-06-11T19:24:00+00:00

I am working on an iPad application, that requires me to store data locally

  • 0

I am working on an iPad application, that requires me to store data locally if the user doesn’t have internet access and later on sync with the back-end database.

For local storage, I am planning to use Core Data with SQLite.

I am using Core Data for the first time and it seems, it retrieves entity and store entity in the form of a dictionary.

So should I be creating Model classes at all ?

What is a good design for such application.

I have a DataEngine class whose responsibility is to store entity on a server or local DB based on connectivity.

Now I am little confused If I need to create a Model class and ask individual model classes to save themselves using NSMangaedObjectContext with a dictionary representation Or just directly save data instead of creating a model object and asking it to do it ?

Should I be using a Moel class for each entity and that will server as interface between JSON representation that coms/goes from/to server.

and the representation I get from managedObjectContext.

Or shall I compeletely rely on the entity and relation ships that Core Data creates ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:24:01+00:00Added an answer on June 11, 2026 at 7:24 pm

    I’ll do this backwards: first some things for you to check and then some ideas.

    Check my own question.

    I’d say that on your custom categories you can do the interface between the JSON representation and your classes.

    You should also check RestKit which can do already much of what you need.


    You’re talking about two separate problems as far as I can understand:

    1. Syncing local data to the server based on connectivity;
    2. Using model classes.

    Problem 1

    I think you should have a class with the common code and each of your model classes should have its own mapping (to map between model and JSON) and saving methods.

    Another class, that may be your DataEngine class, takes care of saving the right objects at the right time.
    Take a look at RestKit as it helps with the mapping and the saving. I’m not sure about the syncing though.

    Problem 2

    I think you should have model classes. It helps a lot to work with objects and you have then a place to save methods for finding different kinds of data.

    For this my question might be useful for you because you can create a CoreData model with generated class files and update it whenever you want while keeping your custom code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The iPad application I'm working on requires that the user provide a username and
I have a drawing application that I'm working on for the iPad. I'm trying
I have a UITableView in an iPad application that I am working on. When
I'm working on an application that downloads some data from the internet using NSData's
I am working on an iPad application, displaying TableView listing according to returned data
In one of the iPad Application, I am working I have added custom views
I am working on application for Ipad.in this application i have a UIButton on
I am working on a splitView application for my iPad . I have implemented
I am working on a project that includes a Mac application and an iPad
I have a somewhat complex data model in my iPad application (an OpenGL drawing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.