See ChangeLog

Monotone-Parent: 4437a82e041d016710ea3a45d8b7cf5b6341afff
Monotone-Revision: 0746b51101ad96419ffd4e8f557f967f13b70a60

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2009-10-13T20:17:29
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2009-10-13 20:17:29 +00:00
parent bf95e10746
commit a285132f8b
8 changed files with 81 additions and 41 deletions
+3 -9
View File
@@ -56,6 +56,7 @@ static NSString *uidColumnName = @"c_uid";
url = [theURL copy];
uid = [theUID copy];
defFlags.ready = YES;
defFlags.isNew = YES;
}
else
{
@@ -134,7 +135,7 @@ static NSString *uidColumnName = @"c_uid";
/* fetch values */
row = [channel fetchAttributes: attrs withZone: NULL];
defFlags.isNew = (row == nil);
defFlags.isNew = !row;
[channel cancelFetch];
/* remember values */
@@ -307,7 +308,7 @@ static NSString *uidColumnName = @"c_uid";
[self fetchProfile];
if (values)
jsonRep = [values jsonRepresentation];
jsonRep = [values jsonStringValue];
else
jsonRep = @"{}";
@@ -402,13 +403,6 @@ static NSString *uidColumnName = @"c_uid";
return [self primaryFetchProfile];
}
- (void) flush
{
[values removeAllObjects];
defFlags.modified = NO;
defFlags.isNew = NO;
}
/* typed accessors */
- (NSArray *) arrayForKey: (NSString *) key