Closed gmoledina closed 8 years ago
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.
Oh perfect, thanks for the answer. :+1:
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) ?