Monotone-Parent: e5c0dcb0589437eaceeabfaf2552be656e7a33c8

Monotone-Revision: 730c8a73525c070f1f66243a9c692f2ee0adbcd0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-12-02T21:18:22
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-12-02 21:18:22 +00:00
parent 538367c893
commit 4359d943fe
2 changed files with 8 additions and 7 deletions
+4
View File
@@ -1,5 +1,9 @@
2009-12-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoUserDefaults.m (+initialize): we need to
initialize the profile class from the constructor as this method
may be invoked before all modules are loaded.
* SoObjects/SOGo/SOGoSource.h: added new "SOGoDNSource" protocol
as a child protocol of "SOGoSource".
+4 -7
View File
@@ -32,7 +32,6 @@
#import "SOGoUserDefaults.h"
static Class SOGoUserProfileKlass = Nil;
NSString *SOGoWeekStartJanuary1 = @"January1";
NSString *SOGoWeekStartFirst4DayWeek = @"First4DayWeek";
@@ -45,18 +44,16 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
return @"SOGoSQLUserProfile";
}
+ (void) initialize
{
if (!SOGoUserProfileKlass)
SOGoUserProfileKlass = NSClassFromString ([self userProfileClassName]);
}
+ (SOGoUserDefaults *) defaultsForUser: (NSString *) userId
inDomain: (NSString *) domainId
{
SOGoUserProfile *up;
SOGoUserDefaults *ud;
SOGoDefaultsSource *parentSource;
static Class SOGoUserProfileKlass = Nil;
if (!SOGoUserProfileKlass)
SOGoUserProfileKlass = NSClassFromString ([self userProfileClassName]);
up = [SOGoUserProfileKlass userProfileWithType: SOGoUserProfileTypeDefaults
forUID: userId];