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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:37:06+00:00 2026-05-27T22:37:06+00:00

I’m going to write recipe application. What’s the best way to store configuration (list

  • 0

I’m going to write recipe application. What’s the best way to store configuration (list of recipes) in iOS4? XML, JSON files, Core Data or something other?

  • 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-27T22:37:07+00:00Added an answer on May 27, 2026 at 10:37 pm

    First of all this depends on where the data is initially stored. Will your recipe app be self-consistent, that is will it contain all receipts bundled in the app or will it download them from the network based on user interactions? (e.g. searching for regional receipts, or seasonal receipts, and so on).

    RECEIPTS FROM NETWORK (ONLINE APP)

    In such case you will download the receipts from the network by request. The best way to store them is leave them dynamically in memory while the app is running (memory cache). You will purge the memory cache as soon as there is some low memory pressure. Receipts loading will be lazy as if the receipt is in the memory cache it will be retrieved from it, if missing (because never loaded or purged) it will be retrieved from the network again. A great improvement can be achieved by setting up a network disk cache (using standard Cocoa caching system or some open source framework such as MKNetworkKit or ASIHTTPRequest). In such case the receipt will be retrieved in this order: memory cache, disk cache, network. The app will then work offline (only for receipts that have been loaded yet), and you will never need to worry about receipts storage as the disk cache will take care of this.

    BUNDLED RECEIPTS

    Typically a receipts memory graph could be slightly more complex than a simple “array” of receipts. You can have a receipts table (“entity”), an ingredients table, a restaurants table if you link this receipt to restaurants that offer it, a photography table and so on. In such case the complexity of the object graph is such that CoreData is the better solution. You will not care of the persistent store (typically SQLite and managed by CoreData framework).
    You may need to pre-load the CoreData store at start-up, this can be done using a “dev app” that reads the original data source (xml, json, csv), creates the managed objects and save them in the CoreData storage. Then you will get the resulting file and you will save it in your bundle.
    An extra complexity may arrive if you want to keep your app up to date with new receipts taken from the network, without releasing an app update each time. In such case the best flow is:
    – put the CoreData storage in the app bundle
    – at first start up, copy it in the app sandboxed documents area (or app Library/Caches if you don’t want to add extra backup space to the user; then protect this area against OS cache automatic cleaning)
    – each time your app retrieves new receipts from the network (automatically or from In App Purchase) parse the received data (xml, json, csv, …) and save it in your CoreData storage.

    NOTE

    This suggestion is not coming from guesses but real experience. I have developed several receipt apps, especially online ones.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have thousands of HTML files to process using Groovy/Java and I need to
I'm parsing an XML file, the creators of it stuck in a bunch social
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

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.