Half Activist wrote: > Hi, > > i wrote a little application, that locks focus on an NSImage, draws > to it, then unlock the focus. > I then try to get the TIFFRepresentation data, but it always returns > nil. > The same code works in Cocoa...and i do not use Cocoa specific things. >
This currently is a limitation of GNUstep. When drawing to an NSImage we draw to a cached representation and TIFFRepresentation will just go through the existing bitmap representations and return tiff data for them. Both these operations are not what you need. So in some way you are using "Cocoa specific things", as GNUstep currently hasn't implemented them correctly. And to be honest, I am not that clear, what the right implementation would be. Should we create bitmap representations for images as well and draw into them or allow to grap the content of a cached image representation and return it as tiff? The later may not be to hard to implement. Fred _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
