From: Charles S. <bas...@ch...> - 2012-06-18 22:57:13
|
On Jun 18, 2012, at 5:51 PM, Alexei Svitkine wrote: > On Mon, Jun 18, 2012 at 2:38 PM, Robert Munafo <mr...@gm...> wrote: > In my scientific apps, written by me and running within SheepShaver, > the clipboard PICT data includes a label with important information as > text strings (DrawString). These label text strings need to survive > the transfer to the host OS in order for cut/paste to be useful. > > Assuming there's no good open source library to handle arbitrary PICT data, the solution here would be to add some functionality to TESyncScrap or a similar extension that would intercept clipboard data on the guest OS side and when it's a PICT, rasterize it into PICT bitmap-only data, putting that back on the guest clipboard. > > Then, when SheepShaver gets that data, the PICTs will be guaranteed to only have bitmap data, which could be handled by paintlib (or possibly even some simpler code we can just write for SheepShaver) which would then be easily convertible to the host OS clipboard format. > > This solution would then work cross-platform, instead of being tied to Mac OS X as the host. Alternatively, depending on how well the NSImage-based functionality turns out to work for Robert’s specialized PICT files, we could use the host OS functionality on OS X, and use the libpaint/other library/homespun code for the other targets, which would result in one less library requirement for the OS X port, which is nice. Charles |