Thank you, committed.
On 26.12.2013 10:13, Lundberg, Johannes wrote:
> I noticed that the description method is missing in NSImage.
> Here is a patch that adds a description method that will generate an output
> similar to OS X 10.8.
>
> 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).
_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev