mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-21 06:33:18 +00:00
Monotone-Parent: ef1202eb23562c04fbe5f3e3ce4cab4319fe9b98
Monotone-Revision: 8c84d6a640b03db846372423022159e6855f501a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-11-26T01:58:33 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -86,17 +86,25 @@
|
||||
|
||||
- (void) _setRecord: (NSDictionary *) objectRecord
|
||||
{
|
||||
NSString *newContent;
|
||||
id data;
|
||||
int intValue;
|
||||
|
||||
newContent = [objectRecord objectForKey: @"c_content"];
|
||||
if (newContent)
|
||||
data = [objectRecord objectForKey: @"c_content"];
|
||||
if (data)
|
||||
ASSIGN (content, data);
|
||||
data = [objectRecord objectForKey: @"c_version"];
|
||||
if (data)
|
||||
version = [data unsignedIntValue];
|
||||
data = [objectRecord objectForKey: @"c_creationdate"];
|
||||
if (data)
|
||||
{
|
||||
ASSIGN (content, newContent);
|
||||
version = [[objectRecord objectForKey: @"c_version"] unsignedIntValue];
|
||||
intValue = [[objectRecord objectForKey: @"c_creationdate"] intValue];
|
||||
intValue = [data intValue];
|
||||
ASSIGN (creationDate,
|
||||
[NSCalendarDate dateWithTimeIntervalSince1970: intValue]);
|
||||
}
|
||||
data = [objectRecord objectForKey: @"c_lastmodified"];
|
||||
if (data)
|
||||
{
|
||||
intValue = [[objectRecord objectForKey: @"c_lastmodified"] intValue];
|
||||
ASSIGN (lastModified,
|
||||
[NSCalendarDate dateWithTimeIntervalSince1970: intValue]);
|
||||
|
||||
Reference in New Issue
Block a user