Monotone-Parent: 925d096d1e0f9b05775333d6111c325f69a17ac0

Monotone-Revision: cadb1dbd9d4e2d99af291da99b803238fd438921

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-01-16T18:50:17
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-01-16 18:50:17 +00:00
parent 01e97af01c
commit 1ed587058e
16 changed files with 129 additions and 508 deletions
+3 -13
View File
@@ -62,7 +62,6 @@
#import "NSDictionary+Utilities.h"
#import "NSString+Utilities.h"
#import "SOGoCache.h"
#import "SOGoObject.h"
@interface SOGoObject(Content)
@@ -561,19 +560,10 @@ static BOOL kontactGroupDAV = YES;
acquire: (BOOL) acquire
{
id obj;
SOGoCache *cache;
cache = [SOGoCache sharedCache];
obj = [cache objectNamed: lookupName inContainer: self];
if (!obj)
{
obj = [[self soClass] lookupKey: lookupName inContext: localContext];
if (obj)
{
[obj bindToObject: self inContext: localContext];
[cache registerObject: obj withName: lookupName inContainer: self];
}
}
obj = [[self soClass] lookupKey: lookupName inContext: localContext];
if (obj)
[obj bindToObject: self inContext: localContext];
return obj;
}