kgn / InAppSettings

InAppSettings provides a view controller that displays the application's Settings.bundle as it appears in the iPhone settings. Allowing the same preferences in app and in the iPhone settings.
MIT License
233 stars 33 forks source link

Add delegate methods for when settings change #16

Closed kgn closed 11 years ago

kgn commented 13 years ago

http://www.iphonedevsdk.com/forum/iphone-sdk-development/41407-app-iphone-preferences.html#post179090

kgn commented 13 years ago

Doesn't this just duplicate the functionality of NSUserDefaultsDidChangeNotification?

kgn commented 13 years ago

NSUserDefaultsDidChangeNotification doesn't tell you which preference changed.

LittleOrangeC commented 12 years ago

A delegate would be nice, but I find some simple logic with NSUserDefaultsDidChangeNotification allows me to get the job done.

Tricertops commented 11 years ago

Don't use delegate. Notifications are better, so you would duplicate the NSUserDefaultsDidChangeNotification with one difference: you will include userInfo dictionary with changed values.

kgn commented 11 years ago

There is InAppSettingsValueChangeNotification, I'll double check the implementation before closing this issue.

kgn commented 11 years ago

I've confirmed that the InAppSettingsValueChangeNotification notification is being fired whenever a preference changes in InAppSettings