Monotone-Parent: a87d7a6ebe1e63e7828494f7104ff49289abc15e

Monotone-Revision: e785838ad834b8a805eeb85700cd115f2501c0f7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-06-19T14:48:25
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau committed 2009-06-19 14:48:25 +00:00
1 parent 411b7df5b7
commit 853cc1312e
4 files changed
+32 -9

No files matched your search

+13 -3
View File
@@ -35,7 +35,7 @@
}
#warning we should use the same nomenclature as the webdav values...
- (NSDictionary *) asWebDAVTuple
- (NSMutableDictionary *) asWebDAVTuple
{
NSString *namespace, *nodeName;
NSRange nsEnd;
@@ -44,9 +44,19 @@
namespace = [self substringFromRange: NSMakeRange (1, nsEnd.location - 1)];
nodeName = [self substringFromIndex: nsEnd.location + 1];
return [NSDictionary dictionaryWithObjectsAndKeys: namespace, @"ns",
nodeName, @"method", nil];
return [NSMutableDictionary
dictionaryWithObjectsAndKeys: namespace, @"ns",
nodeName, @"method", nil];
}
- (NSMutableDictionary *) asWebDAVTupleWithContent: (id) content
{
NSMutableDictionary *tuple;
tuple = [self asWebDAVTuple];
[tuple setObject: content forKey: @"content"];
return tuple;
}
@end