mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-09 17:03:20 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user