Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Adrian Catuna2,092 Points
Saving Parse Objects locally
What is the proper way to save parse objects locally? I placed them in an NSMutableDictionary and tried saving them with NSUserDefaults but that failed with this error, "Attempt to set a non-property-list object as an NSUserDefaults value".
I want to upload my object to Parse and save locally too. Kind of like caching it. I know that parse offers query caching but I need to cache when uploading too, not just when querying.
I would appreciate if somebody could point me in the right direction.
Amit BijlaniTreehouse Guest Teacher
Parse is working on an offline mode. Meanwhile, you could use Core Data to store all your data locally. Check out the Build a Diary app with Core Data if you want to learn how to use Core Data. Essentially, you would get the data from Parse and then store it locally to Core Data. Your views would use the Core Data objects to display data and would never interact with Parse.