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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:37:17+00:00 2026-05-13T15:37:17+00:00

this is a beginner’s question: Every tutorial I’ve seen on CoreData focusses on database-backed

  • 0

this is a beginner’s question: Every tutorial I’ve seen on CoreData focusses on database-backed storage. They all start out with drawing an object model with relationships and whatnot.

But my app will be like a simple drawing app, think Illustrator light or OmniGraffle. I have an object in memory for the page and then several child object for the drawn elements. How would you use CoreData for this?

I don’t need finished code just pointers or ideas.

Thank you!

  • 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-13T15:37:18+00:00Added an answer on May 13, 2026 at 3:37 pm

    Every program design starts (or should start) with the data model. The data model stores not only the data for the program but the logical relationships between pieces of data. The data model is the guts of the program and everything else is one or more interfaces that displays the data model in some manner.

    Take the example of a simple drawing program that draws polygons. Logically, the program would start with a document. In core data this would be represented by a document entity in the data model and probably a NSManagedObject subclass. The document in turn would contain (relationship) one or more pages. The pages would also have an entity and a subclass. The pages would hold data about a physical page such as margins, footers, headers etc. A page would also hold the polygons. Each poly entity-subclass would hold have the information necessary to draw the polygon e.g. the points of the vertices.

    As the user drew, the controller layer would convert the commands and screen positions into data in the data model and then back out again as needed.

    There are many advantages to using core data to build the data model.

    • Core data automatically manages very complex logically relationships that are hard to track by hand.
    • It creates an automatic undo system
    • It makes it easier to transfer data (drawing in this case) between different parts of the program or to export subpart of a drawing.
    • It decouples the data from any particular interface. For example, you could output a drawing to LaTex or flash simply by writing another controller.
    • It makes it easy to script the application. Simply have the script interface programmatically with the data model instead of the user interface.

    It is my understanding the Omnigraffle is based on Core Data so if you want an app like that Core Data is definitely the way to go.

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

Sidebar

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.