I would like to observe changes to settings values in [NSUserDefaults standardDefaults]. I am using the InAppSettingsKit to access and change settings in the program. Until now, I have just assumed all values have changed and sent notifications to all observers to update based on new values. This is not efficient and I only want to send notifications to observers when a relevant change has occurred.
Can someone suggest an efficient way to do this?
Can I assume that the value for any key from [NSUserDefaults standardDefaults] is never an array, set, or a dictionary? (Working with settings is new for me. This would probably help if I had to do a brute force scan for changes, comparing a before-dictionary with an after-dictionary. And it would not require any recursion.)
If this is already in the InAppSettingsKit, I haven't seen it, and I would be glad if someone could point it out.