CBHPreferencesManager
An easy-to-use preferences manager. Additionally includes a notification system.
Examples:
Gets the shared manager, registers a call back for a key, and changes the key, after which the callback will be executed.
CBHPreferencesKey NameKey = @"NameKey";
// ...
CBHPreferencesManager *manager = [CBHPreferencesManager sharedManager];
[manager registerObject:self withSelector:@selector(nameChanged:) forChangeOfKey:NameKey];
[manager setObject@"Chris Huxtable" forKey:NameKey];
// ...
- (void)nameChanged:(NSNotification *)notification
{
NSLog(@"Name Changed to %@", [notification object]);
}
Licence
CBHPreferencesManager is available under the ISC license.