As it turned out, retrieving tweak settings from
NSUserDefaults as outlined in the post I wrote a few months ago proved to not be very robust and still had problems within a sandboxed process.
At one point several months prior to the libcephei update a few weeks ago, I thought about how preferences loading could be improved, and started working on a class called
HBPreferences. The idea is that either you keep an instance of this class as a global variable in your tweak, and use it basically as you would with
NSUserDefaults. Or, you can take it one step further than what
NSUserDefaults is capable of and “register” a variable’s pointer so it’ll always be up to date with no preference reloading code required in your tweak.
If you don’t already understand the changes made in iOS 8, refer to the first few paragraphs of the original post.