mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 08:30:59 +00:00
* 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:
parent
7de56fb882
commit
dc50232e07
2 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue