Monotone-Parent: fab115ed2ae60866132f76c69f795a2388ec8672

Monotone-Revision: efa84a74ea15b6e14fe062eda5a4631b23b044f4

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-06-01T04:13:22
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-06-01 04:13:22 +00:00
parent d1a99f9b94
commit 026c34f40e
3 changed files with 26 additions and 0 deletions
+4
View File
@@ -1,5 +1,9 @@
2007-06-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/NSArray+Utilities.m ([NSArray
-containsCaseInsensitiveString:match]): an enhanced version of
containsObject:.
* UI/MailerUI/UIxMailView.m ([-isTrashingAllowed]): removed
useless method.
([-showMarkDeletedButton]): removed useless method.
+2
View File
@@ -33,6 +33,8 @@
- (NSArray *) stringsWithFormat: (NSString *) format;
- (BOOL) containsCaseInsensitiveString: (NSString *) match;
#ifdef GNUSTEP_BASE_LIBRARY
- (void) makeObjectsPerform: (SEL) selector
withObject: (id) object1
+20
View File
@@ -81,6 +81,26 @@
return representation;
}
- (BOOL) containsCaseInsensitiveString: (NSString *) match
{
BOOL response;
NSString *currentString, *cmpObject;
NSEnumerator *objects;
response = NO;
cmpObject = [match lowercaseString];
objects = [self objectEnumerator];
currentString = [objects nextObject];
while (currentString && !response)
if ([[currentString lowercaseString] isEqualToString: cmpObject])
response = YES;
else
currentString = [objects nextObject];
return response;
}
@end
@implementation NSMutableArray (SOGoArrayUtilities)