User Tools

Site Tools


ios-labs-s14:intermediate-stores

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ios-labs-s14:intermediate-stores [2014/02/23 21:58]
mbarboi created
ios-labs-s14:intermediate-stores [2014/02/23 21:59]
mbarboi
Line 7: Line 7:
 They all accomplish the same task: storing items on the device'​s hard drive. Objects living in memory (that you alloc/init) live in RAM and will not stick around if the app crashes or is terminated. ​ They all accomplish the same task: storing items on the device'​s hard drive. Objects living in memory (that you alloc/init) live in RAM and will not stick around if the app crashes or is terminated. ​
  
--NSUserDefaults- officially to be used for "​defaults"​ information,​ or saved information about the user's behavior or preferences,​ but in practice can handle 1000-100,​000 object transactions without impacting performance. Minimal code required. Easiest to use.+  ​-NSUserDefaults- officially to be used for "​defaults"​ information,​ or saved information about the user's behavior or preferences,​ but in practice can handle 1000-100,​000 object transactions without impacting performance. Minimal code required. Easiest to use.
   -CoreData- efficient, optimized, and filled with shortcuts, useful for large or small data sets. Contains a system for managing the entire model in a graphical way. Requires no knowledge of databases. More difficult to setup. Can transfer database file away from app with some difficulty.   -CoreData- efficient, optimized, and filled with shortcuts, useful for large or small data sets. Contains a system for managing the entire model in a graphical way. Requires no knowledge of databases. More difficult to setup. Can transfer database file away from app with some difficulty.
   -Plist files- least efficient, cannot handle large transactions without impacting performance. Difficult to setup, not commonly used. Can move plist file around fairly easily, useful when including data with app without using CoreData.   -Plist files- least efficient, cannot handle large transactions without impacting performance. Difficult to setup, not commonly used. Can move plist file around fairly easily, useful when including data with app without using CoreData.
ios-labs-s14/intermediate-stores.txt ยท Last modified: 2014/02/23 21:59 by mbarboi