Monotone-Parent: 8d642918307c4ec207760dac241eca7219d0074a

Monotone-Revision: 2303b51b776f8ba14da83e3a05e92f43b13279cc

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-05-25T17:30:24
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-05-25 17:30:24 +00:00
parent 8430768d24
commit 8b02b7fe51
9 changed files with 216 additions and 0 deletions
+23
View File
@@ -58,6 +58,29 @@
withObject: object2];
}
- (NSString *) jsonRepresentation
{
id currentElement;
NSMutableArray *jsonElements;
NSEnumerator *elements;
NSString *representation;
jsonElements = [NSMutableArray new];
elements = [self objectEnumerator];
currentElement = [elements nextObject];
while (currentElement)
{
[jsonElements addObject: [currentElement jsonRepresentation]];
currentElement = [elements nextObject];
}
representation = [NSString stringWithFormat: @"[%@]",
[jsonElements componentsJoinedByString: @", "]];
[jsonElements release];
return representation;
}
@end
@implementation NSMutableArray (SOGoArrayUtilities)