mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 23:12:40 +00:00
See ChangeLog
Monotone-Parent: ede90c4ec21ca642e49b4287679877bd02717ed6 Monotone-Revision: ae2c5342363a3fa87101fa6840e1c1e1f7a819c0 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2011-06-01T21:10:25 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
624172fe92
commit
53a01edee4
25 files changed
+521
-102
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/* NSArray+Utilities.m - this file is part of SOGo
|
||||
*
|
||||
* Copyright (C) 2006-2009 Inverse inc.
|
||||
* Copyright (C) 2006-2011 Inverse inc.
|
||||
*
|
||||
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
*
|
||||
@@ -129,7 +129,10 @@
|
||||
flattenedArray = [NSMutableArray array];
|
||||
objects = [self objectEnumerator];
|
||||
while ((currentObject = [objects nextObject]))
|
||||
[flattenedArray addObjectsFromArray: currentObject];
|
||||
if ([currentObject isKindOfClass: [NSArray class]])
|
||||
[flattenedArray addObjectsFromArray: [(NSArray *)currentObject flattenedArray]];
|
||||
else
|
||||
[flattenedArray addObject: currentObject];
|
||||
|
||||
return flattenedArray;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user