Useful for debugging with NSLog...
Index: Source/NSImage.m
===================================================================
--- Source/NSImage.m (revision 37440)
+++ Source/NSImage.m (working copy)
@@ -461,6 +461,16 @@
return NO;
}
+- (NSString*)description
+{
+ return [NSString stringWithFormat: @"<%@ %p Name=%@ Size=%@ Reps=%@>",
+ [self class],
+ self,
+ [self name],
+ NSStringFromSize([self size]),
+ [self representations]];
+}
+
/* This methd sets the name of an image, updating the global name dictionary
* to point to the image (or removing an image from the dictionary if the
* new name is nil).
Best regards
--
Johannes Lundberg
BRILLIANTSERVICE CO., LTD.