Monotone-Parent: 9bf1b57a27d30984eb23f37b8cfbe075869b047a
Monotone-Revision: 15503fe623be16f680136363d33fa6452249289a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-07-23T17:32:09 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
da6af09c45
commit
b35388fd4e
|
@ -1,3 +1,9 @@
|
|||
2009-07-23 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/NSArray+Utilities.m (-trimmedComponents): new
|
||||
method that returns a trimmed/stripped version of the strings
|
||||
contained in the array.
|
||||
|
||||
2009-07-22 Cyril Robert <crobert@inverse.ca>
|
||||
|
||||
* UI/Scheduler/UIxCalListingActions.m: Added "editable" field to tasks, so
|
||||
|
|
|
@ -43,6 +43,8 @@
|
|||
|
||||
- (BOOL) containsCaseInsensitiveString: (NSString *) match;
|
||||
|
||||
- (NSArray *) trimmedComponents;
|
||||
|
||||
#ifdef GNUSTEP_BASE_LIBRARY
|
||||
- (void) makeObjectsPerform: (SEL) selector
|
||||
withObject: (id) object1
|
||||
|
|
|
@ -115,12 +115,8 @@
|
|||
|
||||
flattenedArray = [NSMutableArray array];
|
||||
objects = [self objectEnumerator];
|
||||
currentObject = [objects nextObject];
|
||||
while (currentObject)
|
||||
{
|
||||
[flattenedArray addObjectsFromArray: currentObject];
|
||||
currentObject = [objects nextObject];
|
||||
}
|
||||
while ((currentObject = [objects nextObject]))
|
||||
[flattenedArray addObjectsFromArray: currentObject];
|
||||
|
||||
return flattenedArray;
|
||||
}
|
||||
|
@ -196,6 +192,23 @@
|
|||
return response;
|
||||
}
|
||||
|
||||
- (NSArray *) trimmedComponents
|
||||
{
|
||||
NSMutableArray *newComponents;
|
||||
NSString *currentString;
|
||||
unsigned int count, max;
|
||||
|
||||
max = [self count];
|
||||
newComponents = [NSMutableArray arrayWithCapacity: max];
|
||||
for (count = 0; count < max; count++)
|
||||
{
|
||||
currentString = [[self objectAtIndex: count] stringByTrimmingSpaces];
|
||||
[newComponents addObject: currentString];
|
||||
}
|
||||
|
||||
return newComponents;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSMutableArray (SOGoArrayUtilities)
|
||||
|
|
Loading…
Reference in New Issue