1

I am creating a calculator app similar to this

The thing is I am not very sure which practice should I use to save my calculated results. I want to save only last 20 entries.

NSCache - This link says it's not a permanent cache on disk.

NSUserDefaults - Used for saving user preference.

Core Data - Seems to be an overkill in this case (do criticize if I am wrong).

plist - Since the data isn't much data I think this is a good choice.

However I'd like to know if there are any better practices out there which would be more professional in this case. Thanks.

Community
  • 1
  • 1
Rishab
  • 1,901
  • 2
  • 18
  • 34
  • I would go for a `.plist`, but if you ever need to start saving more complicated data, I would have a look at `NSKeyedArchiver`. – Hamish Jan 16 '16 at 11:19
  • so there's something called as `NSKeyedArchiver`? Cool. Thanks. – Rishab Jan 16 '16 at 11:26

0 Answers0