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 3234244
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:22:08+00:00 2026-05-17T17:22:08+00:00

In Xcode when you create a data model diagram, it will also generate the

  • 0

In Xcode when you create a data model diagram, it will also generate the classes for each entities in the diagram which inherit from NSManagedObject.

The question is are these classes considered my “Model” classes?
OR are they just a bridge between my core data and model classes?

  • 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-17T17:22:08+00:00Added an answer on May 17, 2026 at 5:22 pm

    Yes these classes generated by xcode are the actual model classes.
    I ended up writing my own model classes and then create the data model diagram based on that.
    a few notes:

    • every class being used by code data
      must inherit from NSManagedObject
    • Relationships do not need to be in
      the code, you can just set them in
      the model diagram.
    • NSArray and NSMutableArray are not
      accepted, you should use NSSet
      instead
    • You should not use int in your model
      you should use NSNumber instead
    • If you want the core data models to
      use the classes written by you, then
      you must set the class names in your
      model diagram
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a data model in Xcode with about 9 entities, all of which
Is it possible to generate a .xcdatamodel (CoreData data model) from an existing SQLite
I had an original data model that was used to create NSManagedObject subclasses. I
Environment: xcode 3.2.1, document-based core-data application. I have a document-based cocoa app which uses
I'm studying using Core Data. After I create the entity in Xcode, I want
I've created two entities in core data model (Courier and Occupation in this example),
I have some model classes which I wanted to store with the CoreData framework.
When I have Xcode automatically create the class files for the entities in the
When editing a predicate with the Core Data Model Editor in Xcode 4.2.1, how
in xcode 3 when you added a data model (a .xcdatamodel file) you had

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.