Monotone-Parent: d28c051b2f83062ff54891a804d548e9ca666837

Monotone-Revision: 4e94693f8d0d9bd27638178db0ec3d7df3939ff0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-10-26T18:28:22
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau committed 2010-10-26 18:28:22 +00:00
1 parent d441ff54cb
commit 1d623e943a
3 files changed
+25

No files matched your search

+19
View File
@@ -204,6 +204,25 @@
return results;
}
- (NSArray *) mergedArrayWithArray: (NSArray *) otherArray
{
NSMutableArray *mergedArray;
NSUInteger count, max;
id object;
max = [otherArray count];
mergedArray = [NSMutableArray arrayWithCapacity: (max + [self count])];
[mergedArray setArray: self];
for (count = 0; count < max; count++)
{
object = [otherArray objectAtIndex: count];
if (![mergedArray containsObject: object])
[mergedArray addObject: object];
}
return mergedArray;
}
- (NSString *) jsonRepresentation
{
id currentElement;