sogo/SoObjects/SOGo/NSArray+DAV.m
Wolfgang Sourdeau 853cc1312e Monotone-Parent: a87d7a6ebe1e63e7828494f7104ff49289abc15e
Monotone-Revision: e785838ad834b8a805eeb85700cd115f2501c0f7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-06-19T14:48:25
Monotone-Branch: ca.inverse.sogo
2009-06-19 14:48:25 +00:00

52 lines
1.5 KiB
Objective-C

/* NSArray+DAV.m - this file is part of SOGo
*
* Copyright (C) 2008 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This file is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#import <Foundation/NSEnumerator.h>
#import <Foundation/NSString.h>
#import "NSObject+DAV.h"
#import "NSArray+DAV.h"
@implementation NSArray (SOGoWebDAVExtensions)
- (NSString *)
asWebDavStringWithNamespaces: (NSMutableDictionary *) namespaces
{
NSMutableString *webdavString;
unsigned int count, max;
NSObject *child;
webdavString = [NSMutableString string];
max = [self count];
for (count = 0; count < max; count++)
{
child = [self objectAtIndex: count];
[webdavString appendString:
[child asWebDavStringWithNamespaces: namespaces]];
}
return webdavString;
}
@end