mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
Monotone-Parent: fa7f4f3829eb5576b8845dcb4c03e5327cc7e354
Monotone-Revision: bed152d621c11e6d16b59bdf26007079a05e1696 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-09-22T21:11:08 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
- (NSArray *) objectsForKey: (NSString *) key
|
||||
notFoundMarker: (id) marker;
|
||||
- (NSArray *) flattenedArray;
|
||||
- (NSDictionary *) flattenedDictionaries;
|
||||
|
||||
- (NSArray *) uniqueObjects;
|
||||
|
||||
|
||||
@@ -121,6 +121,24 @@
|
||||
return flattenedArray;
|
||||
}
|
||||
|
||||
- (NSDictionary *) flattenedDictionaries
|
||||
{
|
||||
NSMutableDictionary *newDict;
|
||||
NSDictionary *currentDictionary;
|
||||
int count, max;
|
||||
|
||||
newDict = [NSMutableDictionary dictionary];
|
||||
|
||||
max = [self count];
|
||||
for (count = 0; count < max; count++)
|
||||
{
|
||||
currentDictionary = [self objectAtIndex: count];
|
||||
[newDict addEntriesFromDictionary: currentDictionary];
|
||||
}
|
||||
|
||||
return newDict;
|
||||
}
|
||||
|
||||
- (NSArray *) uniqueObjects
|
||||
{
|
||||
NSMutableArray *newArray;
|
||||
|
||||
Reference in New Issue
Block a user