From 4fd103b5de98d2f469b982677ea389e7ee7d64b3 Mon Sep 17 00:00:00 2001 From: "thomasvl@gmail.com" Date: Fri, 9 Jan 2009 20:34:30 +0000 Subject: - turned off _debug framework support in tests since we now capture a lot more in log validation. - Added GTM_SUPPORT_GC for controlling the inclusion of GC related code. - If you are using GTMUnitTestDevLog, it also tries to capture logs from NSAssert. - Added GTM_FOREACH_OBJECT/GTM_FOREACH_KEY that uses NSEnumerator and objectEnumerator/keyEnumerator on 10.4, but on 10.5+/iPhone uses FastEnumeration. - GTMNSWorkspace+Running gives a variety of ways of determining the attributes of running processes. --- Foundation/GTMRegex.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Foundation/GTMRegex.h') diff --git a/Foundation/GTMRegex.h b/Foundation/GTMRegex.h index c32eee2..3ef5604 100644 --- a/Foundation/GTMRegex.h +++ b/Foundation/GTMRegex.h @@ -84,12 +84,10 @@ _EXTERN NSString* kGTMRegexPatternErrorErrorString _INITIALIZE_AS(@"patternError // Example usage: // // NSArray *inputArrayOfStrings = ... -// NSEnumerator *enumerator = [inputArrayOfString objectEnumerator]; -// NSString *curStr = nil; // NSArray *matches = [NSMutableArray array]; // // GTMRegex *regex = [GTMRegex regexWithPattern:@"foo.*bar"]; -// while ((curStr = [enumerator nextObject]) != nil) { +// for (NSString *curStr in inputArrayOfStrings) { // if ([regex matchesString:curStr]) // [matches addObject:curStr]; // } -- cgit v1.2.3