From 1cb75927b24789a626344bdd2cea037397de128b Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 13 Jan 2009 20:39:19 +0000 Subject: [PATCH] Monotone-Parent: 0b7bac15489b71af8e245ccf74e1bcc0e75b242f Monotone-Revision: 57a604f8ed805a410df500ecbe2ca242e5a2a439 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-01-13T20:39:19 Monotone-Branch: ca.inverse.sogo --- SoObjects/SOGo/SOGoUserDefaults.m | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/SoObjects/SOGo/SOGoUserDefaults.m b/SoObjects/SOGo/SOGoUserDefaults.m index 73e837d9a..79b9860d5 100644 --- a/SoObjects/SOGo/SOGoUserDefaults.m +++ b/SoObjects/SOGo/SOGoUserDefaults.m @@ -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;