adium-1.3 399:e833ee6c22d5: Drop fast enumeration since 1.3.x is...

commits at adium.im commits at adium.im
Tue Jan 12 03:00:24 UTC 2010


details:	http://hg.adium.im/adium-1.3/rev/e833ee6c22d5
revision:	399:e833ee6c22d5
author:		Zachary West <zacw at adium.im>
date:		Mon Jan 11 22:00:19 2010 -0500

Drop fast enumeration since 1.3.x is on 10.4+.

diffs (16 lines):

diff -r 4c0dd30c3b93 -r e833ee6c22d5 Frameworks/AIUtilities Framework/Source/AIImageAdditions.m
--- a/Frameworks/AIUtilities Framework/Source/AIImageAdditions.m	Thu Oct 29 11:44:17 2009 -0400
+++ b/Frameworks/AIUtilities Framework/Source/AIImageAdditions.m	Mon Jan 11 22:00:19 2010 -0500
@@ -73,8 +73,11 @@
 	//We're done drawing
 	[tempImage unlockFocus];
 	
+	NSEnumerator *repEnumerator = [[tempImage representations] objectEnumerator];
+	NSImageRep *rep = nil;	
+	
 	//Find an NSBitmapImageRep from the temporary image
-	for (NSImageRep *rep in tempImage.representations) {
+	while ((rep = [repEnumerator nextObject])) {
 		if ([rep isKindOfClass:[NSBitmapImageRep class]]) {
 			imageRep = (NSBitmapImageRep *)rep;
 		}



More information about the commits mailing list