Re:App Store Milestone: $10K
by signalsignal on Tuesday January 10, 2012 @02:56PM
(#3448691)
Ah-ha! I just assumed the "Your Items" list was saved, but it obviously isn't. I write my apps to saved the input lists. My assumption is that the user wants to preserve the list items for future usage. Maybe it is more than needs to be done.
Re:App Store Milestone: $10K
by markrickert on Tuesday January 10, 2012 @03:46PM
(#3448929)
I am in fact saving the list so the user can have history of what was entered and then they can name the transaction, duplicate and restore transactions. I'm just using JSON to save the history. I tested up to 100k records and didn't see a slow-down in performance so to deter me from doing it that way.
Best possible solution in a perfect world? No. Works? yes. Works well? Yes.
The numbers that are calculated are from direct user input, but the things that are stored like shipping and tax rates are stored using NSUserDefaults.
Caching data locally is fairly easy... just put the downloaded JSON file into the application's sandboxed /Documents folder for easy retrieval later.