Monotone-Parent: a99f88ccf9ab0ad0fdc51a6e439bb37ef7748fe9

Monotone-Revision: 487bd18ac638478f769ea4425a0640978c5b751b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-05-11T21:22:48
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-05-11 21:22:48 +00:00
parent 4aede6c0d9
commit f4c4a7fe7f
2 changed files with 21 additions and 1 deletions
+7
View File
@@ -1,5 +1,12 @@
2007-05-11 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults
-primaryFetchProfile]): when building with libFoundation, don't
use the "propertyList" method from NSString. Rather, we convert
the string to an NSData instance and passit as parameter to
NSDeserializer. This way, we obtain a mutable dictionary rather
than an immutable one.
* SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject -bodyPartForText])
([SOGoDraftObject -mimeMessageForContentWithHeaderMap:]): use the
constant string "contentTypeValue".
+14 -1
View File
@@ -109,6 +109,9 @@ static NSString *uidColumnName = @"uid";
NSString *sql, *value;
NSArray *attrs;
BOOL rc;
#if LIB_FOUNDATION_LIBRARY
NSData *plistData;
#endif
rc = NO;
@@ -144,7 +147,17 @@ static NSString *uidColumnName = @"uid";
/* remember values */
value = [row objectForKey: fieldName];
if ([value isNotNull])
[values setDictionary: [value propertyList]];
{
#if LIB_FOUNDATION_LIBRARY
plistData = [value dataUsingEncoding: NSUTF8StringEncoding];
[values setDictionary: [NSDeserializer
deserializePropertyListFromData: plistData
mutableContainers: YES]];
#else
[values setDictionary: [value propertyList]];
#endif
}
ASSIGN (lastFetch, [NSCalendarDate date]);
defFlags.modified = NO;