bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCell drawInterior... positioning bug?


From: Wim Oudshoorn
Subject: Re: NSCell drawInterior... positioning bug?
Date: Mon, 17 Feb 2003 11:39:45 +0100
User-agent: Mutt/1.4i

On Mon, Feb 17, 2003 at 09:44:34AM +0000, Richard Frith-Macdonald wrote:
> 
> I think that NSCell is probably correct and XGDragView wrong.
> 
> The NSCell API provides no notion of what the frame
> of the cell is,

Yes, I thought as much.  Actually it seems that the NSCell
objects are very lightweight and it is the responsibility
of the owner to ensure they are drawn correctly. 

So, I will fix XGDragView today or tomorrow.  

However, the above seems to imply that there is no
efficient way of drawing images.  Because either you
draw the complete image, or you do not draw the image.

Probably it is the job of the Graphics context to 
avoid unnecessary work.  Well, I leave that for later.
>
> Anyway, perhaps the best thing for XGDragView to do would be
> to composite the image itself and set clipping rectangle as needed,
> rather than asking an NSCell to do the job.
> 
That defeats the purpose of NSImageCell doesn't it?
Or do I misunderstand the use of NSImageCell all together?

Wim Oudshoorn.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]