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

ValueDidChange in BOSetting #34

Closed
gmoledina opened this issue Jan 19, 2016 · 2 comments
Closed

ValueDidChange in BOSetting #34

gmoledina opened this issue Jan 19, 2016 · 2 comments
Labels

Comments

@gmoledina
Copy link
Collaborator

The setValueDidChangeBlock method in BOSetting is not exposed in the header file.
I'm wondering how the Model layer can register to be notified for any changes (so without adding itself as a target in the UI layer) ?

@davdroman
Copy link
Owner

This again comes down to the discussion in #32. As Bohr relies uniquely on NSUserDefaults, value observation can be achieved simply by observing NSUserDefaults directly through the standard KVO mechanism. Again, I didn't originally include support for observation because of the reliance on NSUserDefaults, but this is something we definitely need to work on for the next major, storage-agnostic release.

@gmoledina
Copy link
Collaborator Author

Oh perfect, thanks for the answer. 👍

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

No branches or pull requests

2 participants