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

  • SEARCH
  • Home
  • 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 7070483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:34:19+00:00 2026-05-28T05:34:19+00:00

I think this is a common scenario. I’m defining class models of my app,

  • 0

I think this is a common scenario.
I’m defining class models of my app, I will use Core Data for caching so I would like to take advantage of the NSManagedObject generated subclass to “reuse” it as a model to pass to different classes.
Is that advisable?
Let’s say I get some data from the network I want to build an object model with same instance variables as the Core Data model generated, use it when needed and maybe cache it on the DB.
What is the common approach there?
Can I use a category on Core Data model?
Core Data subclass? Encapsulation? New class ?
Thanks for any tips on that.

  • 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-05-28T05:34:20+00:00Added an answer on May 28, 2026 at 5:34 am

    Core Data is not, at its heart, a database, but rather an object graph manager.

    In many scenarios, it is a very good idea to handle your objects with Core Data, and you can use a fast in-memory store.

    In a way, I think that by attempting NOT to use Core Data to handle your objects, you are destined to re-implement a lot of its functionality. Just use it.

    You say that you are downloading a JSON that represents a given item; and you’re using this item in your views, and then persisting it in a database. Core Data excels at this; take advantage of its full set of features instead of trying to avoid it.

    (And, again, using mogenerator will be very helpful, although it is certainly not required).

    Matt Gallagher has a nice blog article about the differences between Core Data and a database – I suggest that you read it, it’s valuable information.

    Cocoa With Love: The differences between Core Data and a Database

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

Sidebar

Related Questions

I have this scenario, which I think must be pretty common: class Parameter {
I think this is a pretty common scenario: I have a webpage that's returning
I think this is a pretty common scenario, but I haven't been able to
I think this is a common scenario - I have a view where I
I think this must be a common scenario-- but I can't seem to find
I think this is a fairly common question: how to put my business logic
this question is about style, because i think this is a very common problem
Consider this scenario: I have a project with two modules and one common module
I have what I think is a very common scenario. I have an invoice
I'm looking for sort of a 'best practice' way to tackle this common scenario.

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.