Monotone-Parent: 6f4aca34d0b59d7ae94fc6372510067926e9d0b4

Monotone-Revision: 66637dd9fbad7528514f958ca2e14068c4dc2386

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-20T21:13:50
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau 2006-10-20 21:13:50 +00:00
parent 17018226cb
commit f5611606f2

View file

@ -32,8 +32,8 @@
- (NSString *) singleAttributeWithName: (NSString *) key
{
return [[self attributeWithName: key]
stringValueAtIndex: 0];
return [[self attributeWithName: key]
stringValueAtIndex: 0];
}
- (NSDictionary *) asDictionaryWithAttributeNames: (NSArray *) attributeNames
@ -52,15 +52,13 @@
attribute = [attrEnum nextObject];
while (attribute)
{
[valuesDict setObject: [[self attributeWithName: attribute]
stringValueAtIndex: 0]
[valuesDict setObject: [self singleAttributeWithName: attribute]
forKey: attribute];
attribute = [attrEnum nextObject];
}
if (cName)
{
value = [[self attributeWithName: cName]
stringValueAtIndex: 0];
value = [self singleAttributeWithName: cName];
if (!value)
value = @"";
NSLog (@"value for '%@' = '%@'", cName, value);
@ -69,8 +67,7 @@
}
if (uid)
{
value = [[self attributeWithName: uid]
stringValueAtIndex: 0];
value = [self singleAttributeWithName: uid];
if (!value)
value = @"";
NSLog (@"value for '%@' = '%@'", uid, value);