Changeset 23376
- Timestamp:
- 05/09/2008 12:27:21 PM (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Frameworks/AIUtilities Framework/Source/AIImageAdditions.m
r22589 r23376 100 100 while ((rep = [repsEnum nextObject])) { 101 101 if ([rep isKindOfClass:NSBitmapImageRepClass]) { 102 if ([rep size].width >= maxWidth) { 102 float thisWidth = [rep size].width; 103 if (thisWidth >= maxWidth) { 103 104 //Cast explanation: GCC warns about us returning an NSImageRep here, presumably because it could be some other kind of NSImageRep if we don't check the class. Fortunately, we have such a check. This cast silences the warning. 104 105 bestRep = (NSBitmapImageRep *)rep; 106 maxWidth = thisWidth; 105 107 } 106 108 }