Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace NSUserDefaults with something better #34

Open
willhains opened this issue Jul 7, 2018 · 1 comment
Open

Replace NSUserDefaults with something better #34

willhains opened this issue Jul 7, 2018 · 1 comment
Assignees
Milestone

Comments

@willhains
Copy link
Owner

NSUserDefaults was used as a quick temp solution for persistence in the beginning, and I never got around to replacing it with something better.

Candidate replacements, off the top of my head:

  • Core Data
  • Realm
  • a plain ol' flat file
  • something else I've never heard of

(Unfortunately, since Apple won't accept Kotoba for the App Store, CloudKit is off the table, I guess.)

@willhains
Copy link
Owner Author

willhains commented Nov 19, 2019

Current plan for this is to store the word history as a file or set of files, ideally in a location of the user's choosing. That way, the user can choose to store their words in iCloud Drive, Dropbox, or anything else supported by the Files app. (Not sure if this would work, or is possible without being in the App Store... needs research.)

If it works, this solution has a very high bird:stone ratio — it can be more robust than NSUserDefaults, enables syncing (#42) across devices, and gives users access to their data for exporting (#29) to wherever they want. The data format can accommodate metadata about each entry, enabling favourites, last-searched date (#14), etc.

@willhains willhains self-assigned this Nov 19, 2019
@willhains willhains added this to the 2.0 milestone Nov 19, 2019
@willhains willhains modified the milestones: 2.0, 3.0 Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant