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

Integrate UserDefaults system #16

Closed
pascalpp opened this issue May 4, 2019 · 6 comments
Closed

Integrate UserDefaults system #16

pascalpp opened this issue May 4, 2019 · 6 comments
Milestone

Comments

@pascalpp
Copy link
Owner

pascalpp commented May 4, 2019

  • ruler color
  • active transparency
  • inactive transparency
  • float above other windows
@pascalpp pascalpp added this to the 2.0 release milestone May 4, 2019
@pascalpp
Copy link
Owner Author

pascalpp commented May 4, 2019

Before adding the prefs window, need to figure out a pattern for saving various preferences.
Looking at https://github.com/radex/SwiftyUserDefaults or https://github.com/sindresorhus/Defaults

@pascalpp
Copy link
Owner Author

pascalpp commented May 4, 2019

Looks like I need to learn about Codable and maybe NSCoding

@pascalpp pascalpp changed the title Preferences window Integrate UserDefaults system May 4, 2019
@pascalpp pascalpp mentioned this issue May 4, 2019
4 tasks
@jeff-h
Copy link
Collaborator

jeff-h commented May 4, 2019

Out of those I'd suggest you start with Carthage. That said, in an app this small I'm not sure you would really need anything additional for setting & accessing user preferences?

@pascalpp
Copy link
Owner Author

pascalpp commented May 5, 2019

Yeah I've got SwiftyUserDefaults integrated using Carthage in this PR #25

I'm planning to create a Ruler class (or struct?) which will be Codable so we can save each ruler in settings. That way we can persist the size, position, and units of each ruler separately.

This is mostly out of curiosity rather than a pressing end user need, but I'm toying with the idea of creating a 'RulerSet' class so folks could make multiple sets of Rulers and persist them as an array in settings. But going to defer on that for now and focus on the other stuff in the 2.0 milestone.

@pascalpp
Copy link
Owner Author

pascalpp commented May 5, 2019

Closed in #25

@pascalpp pascalpp closed this as completed May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants