mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-18 14:44:53 +00:00
Monotone-Parent: 4c862893152bb1557702d3a6ebc6412e3edd9d17
Monotone-Revision: 48eb4fdf222df36089f2758ea90938ded959a5cc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-03-05T15:34:24 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -78,13 +78,23 @@
|
||||
- (NSString *) davSetterName
|
||||
{
|
||||
unichar firstLetter;
|
||||
NSString *firstString;
|
||||
NSString *firstString, *property, *davPrefix;
|
||||
|
||||
firstLetter = [self characterAtIndex: 0];
|
||||
property = [[self asDavInvocation] objectForKey: @"method"];
|
||||
if (!property)
|
||||
property = self;
|
||||
firstLetter = [property characterAtIndex: 0];
|
||||
firstString = [[NSString stringWithCharacters: &firstLetter length: 1]
|
||||
uppercaseString];
|
||||
return [NSString stringWithFormat: @"set%@%@:",
|
||||
firstString, [self substringFromIndex: 1]];
|
||||
if ([property length] > 3
|
||||
&& [[property substringWithRange: NSMakeRange (0, 3)]
|
||||
caseInsensitiveCompare: @"dav"] == NSOrderedSame)
|
||||
davPrefix = @"";
|
||||
else
|
||||
davPrefix = @"Dav";
|
||||
|
||||
return [NSString stringWithFormat: @"set%@%@%@:", davPrefix,
|
||||
firstString, [property substringFromIndex: 1]];
|
||||
}
|
||||
|
||||
- (NSDictionary *) asDavInvocation
|
||||
|
||||
Reference in New Issue
Block a user