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/GTMNSDictionary+URLArguments.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Foundation/GTMNSDictionary+URLArguments.m') diff --git a/Foundation/GTMNSDictionary+URLArguments.m b/Foundation/GTMNSDictionary+URLArguments.m index d67572c..89610e4 100644 --- a/Foundation/GTMNSDictionary+URLArguments.m +++ b/Foundation/GTMNSDictionary+URLArguments.m @@ -19,6 +19,7 @@ #import "GTMNSDictionary+URLArguments.h" #import "GTMNSString+URLArguments.h" #import "GTMMethodCheck.h" +#import "GTMDefines.h" @implementation NSDictionary (GTMNSDictionaryURLArgumentsAdditions) @@ -26,9 +27,8 @@ GTM_METHOD_CHECK(NSString, gtm_stringByEscapingForURLArgument); - (NSString *)gtm_httpArgumentsString { NSMutableArray* arguments = [NSMutableArray arrayWithCapacity:[self count]]; - NSEnumerator* keyEnumerator = [self keyEnumerator]; NSString* key; - while ((key = [keyEnumerator nextObject])) { + GTM_FOREACH_KEY(key, self) { [arguments addObject:[NSString stringWithFormat:@"%@=%@", [key gtm_stringByEscapingForURLArgument], [[[self objectForKey:key] description] gtm_stringByEscapingForURLArgument]]]; -- cgit v1.2.3