Monotone-Parent: 0b7bac15489b71af8e245ccf74e1bcc0e75b242f

Monotone-Revision: 57a604f8ed805a410df500ecbe2ca242e5a2a439

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-01-13T20:39:19
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-01-13 20:39:19 +00:00
parent f0ff762208
commit 1cb75927b2
+6 -12
View File
@@ -47,7 +47,7 @@ static NSString *uidColumnName = @"c_uid";
uid: (NSString *) userID
fieldName: (NSString *) defaultsFieldName
{
if ((self = [super init]))
if ((self = [self init]))
{
if (tableURL && [userID length] > 0
&& [defaultsFieldName length] > 0)
@@ -67,13 +67,6 @@ static NSString *uidColumnName = @"c_uid";
return self;
}
- (id) init
{
[self release];
return nil;
}
- (void) dealloc
{
[values release];
@@ -296,16 +289,17 @@ static NSString *uidColumnName = @"c_uid";
{
NSMutableDictionary *d;
d = [[NSMutableDictionary alloc] init];
d = [NSMutableDictionary dictionary];
[d setObject: values forKey: @"values"];
[d setObject: uid forKey: @"uid"];
[[NSDistributedNotificationCenter defaultCenter]
postNotificationName: ([fieldName isEqualToString: @"c_defaults"] ? @"SOGoUserDefaultsHaveChanged" : @"SOGoUserSettingsHaveChanged")
postNotificationName: ([fieldName isEqualToString: @"c_defaults"]
? @"SOGoUserDefaultsHaveChanged"
: @"SOGoUserSettingsHaveChanged")
object: nil
userInfo: d
deliverImmediately: YES];
[d release];
}
return rc;