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. _______________________________________________ Bug-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gnustep
