draw vs. composite image in drawRect

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

draw vs. composite image in drawRect

Riccardo Mottola-5

I have subclassed NSProgressIndicator and want to draw totally my own
stuff, actually, I just intend to draw an image.

Actually, I am adapting code that works in GWorkspace: there the
indicator is a subclass in NSView, I want to make it as subclass of

I do in drawRect:

       [img compositeToPoint: NSZeroPoint
                   operation: NSCompositeSourceOver]

however, it is not working.

if instead I do:

[img drawAtPoint:NSZeroPoint fromRect:NSZeroRect
operation:NSCompositeSourceOver fraction:1];

it works! why?


Discuss-gnustep mailing list
[hidden email]