mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-05 20:10:33 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
|
||||
- (NSArray *) stringsWithFormat: (NSString *) format;
|
||||
|
||||
- (BOOL) containsCaseInsensitiveString: (NSString *) match;
|
||||
|
||||
#ifdef GNUSTEP_BASE_LIBRARY
|
||||
- (void) makeObjectsPerform: (SEL) selector
|
||||
withObject: (id) object1
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user