See ChangeLog

Monotone-Parent: 916c7ceb6091d24b72b12cfcc4cb930fd83a96f8
Monotone-Revision: 434bb07a3b51027135236efad4365813a470e946

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2008-11-20T19:17:59
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2008-11-20 19:17:59 +00:00
parent 6c6600bde4
commit acb4d211a8
8 changed files with 120 additions and 43 deletions
+16 -20
View File
@@ -240,32 +240,28 @@ static SOGoCache *sharedCache = nil;
- (void) _userDefaultsHaveChanged: (NSNotification *) theNotification
{
SOGoUserDefaults *d;
d = [[SOGoUserDefaults alloc] initWithTableURL: [[theNotification userInfo] objectForKey: @"url"]
uid: [[theNotification userInfo] objectForKey: @"uid"]
fieldName: [[theNotification userInfo] objectForKey: @"fieldName"]];
[d setValues: [[theNotification userInfo] objectForKey: @"values"]];
SOGoUser *user;
NSString *uid;
[SOGoCache setCachedUserDefaults: d
user: [[theNotification userInfo] objectForKey: @"uid"]];
[d release];
uid = [[theNotification userInfo] objectForKey: @"uid"];
if ((user = [users objectForKey: uid]))
{
[[user userDefaults] setValues: [[theNotification userInfo] objectForKey: @"values"]];
}
}
- (void) _userSettingsHaveChanged: (NSNotification *) theNotification
{
SOGoUserDefaults *d;
d = [[SOGoUserDefaults alloc] initWithTableURL: [[theNotification userInfo] objectForKey: @"url"]
uid: [[theNotification userInfo] objectForKey: @"uid"]
fieldName: [[theNotification userInfo] objectForKey: @"fieldName"]];
[d setValues: [[theNotification userInfo] objectForKey: @"values"]];
SOGoUser *user;
NSString *uid;
[SOGoCache setCachedUserSettings: d
user: [[theNotification userInfo] objectForKey: @"uid"]];
[d release];
uid = [[theNotification userInfo] objectForKey: @"uid"];
if ((user = [users objectForKey: uid]))
{
[[user userSettings] setValues: [[theNotification userInfo] objectForKey: @"values"]];
}
}
- (void) _cleanupSources