From http://www.jwz.org/xscreensaver/xscreensaver-5.33.tar.gz
[xscreensaver] / hacks / webcollage-helper-cocoa.m
index 0a6e9e36be27890cc044bdd5b5b856e0b2102efa..f85b7071f9258d6ba4d8308b2b22e9e445460a46 100644 (file)
@@ -119,7 +119,7 @@ load_image (const char *file)
   // so if an image file specified "pixels per inch" we can end up with
   // absurdly sized images.  Set it back to 1:1 pixel:point.
   //
-  NSImageRep *rep = [image.representations firstObject];
+  NSImageRep *rep = [image.representations objectAtIndex:0];
   image.size = NSMakeSize (rep.pixelsWide, rep.pixelsHigh);
 
   return image;