* Source/NSImage.m: Add description method.

Patch by Johannes Lundberg <johannes@brilliantservice.co.jp>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37518 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2013-12-26 12:34:57 +00:00
parent 7de56fb882
commit dc50232e07
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-12-26 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSImage.m: Add description method.
Patch by Johannes Lundberg <johannes@brilliantservice.co.jp>.
2013-12-24 Richard Frith-Macdonald <rfm@gnu.org>
* Version: bump to 0.24.0

View file

@ -461,6 +461,16 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
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).