Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Store settings on iOS #62

Closed
kkaefer opened this issue Feb 13, 2014 · 3 comments
Closed

Store settings on iOS #62

kkaefer opened this issue Feb 13, 2014 · 3 comments

Comments

@kkaefer
Copy link
Member

kkaefer commented Feb 13, 2014

This would be great for debugging.

@incanus
Copy link
Contributor

incanus commented Feb 13, 2014

Ok, I'll turn this on and just comment out for my own use + team builds.

incanus added a commit that referenced this issue Feb 13, 2014
 * init, load, persist, sync, clear
 * clean up frequent disk syncs which impacted iOS performance
 * insert disk sync into various iOS/OS X lifecycle events
 * implement clear
 * implement save on iOS
 * cleaner dictionary syntax
@incanus incanus closed this as completed Feb 13, 2014
@incanus
Copy link
Contributor

incanus commented Feb 13, 2014

Just a note that aside from cleaning this up and implementing everything, 257ccd1 moves away from disk-sync saves on every map action, which wasn't noticeable on OS X but impacted iOS performance.

@incanus
Copy link
Contributor

incanus commented Feb 13, 2014

Further, from -[NSUserDefaults synchronize]:

Because this method is automatically invoked at periodic intervals, use this method only if you cannot wait for the automatic synchronization (for example, if your application is about to exit) or if you want to update the user defaults to what is on disk even though you have not made any changes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants