From: Joshua J. <jj...@gm...> - 2009-10-18 15:40:45
|
On Oct 18, 2009, at 6:50 AM, Ronald P. Regensburg wrote: > I built SS MacOSX from current CVS (Intel only and I forgot to reverse > the SDL-audio patch). > > Clearly improved (tested with AppleWorks, Tex-Edit Plus and SimpleText > in MacOS9): > - Copying and pasting of styled text between different applications > within MacOS9 in SheepShaver works (when copied from SimpleText, > styles are lost) > - Copying and pasting of styled text from MacOSX to MacOS9 in > SheepShaver works (with anomalies when pasted in SimpleText) > - Copying and pasting from MacOS9 in SheepShaver to MacOSX works only > when copied from a SimpleText document and with styles lost. One of the issues you and others may have run into is the latency occurring between use of the TextEdit scrap and synchronization with the desk scrap, i.e. the clipboard. Prior to Carbon, developers were instructed to synchronize the two scraps on layer switch -- when an application became or ceased to be frontmost. The problem with this approach is that it doesn't play well with screen-in-a-window arrangements where switching to another app in OS X doesn't cause an OS 9 layer switch and consequently gets stale clipboard data. I've written a system extension called TESyncScrap that patches TECut () and TECopy() to flush the TE scrap and TEPaste() to update it. I invite you to try it out and see if it's useful. The source code is also available.[1] TESyncScrap http://jjuran.dyndns.org/~jjuran/experimental/TESyncScrap.mbin TESyncScrap.cc <http://github.com/jjuran/metamage_1/blob/ bd25287ac1551371da0fcf4fd9815b5d14e707db/pedestal/Hacks/TESyncScrap/ TESyncScrap.cc> You'll need a MacBinary decoder. There are several in the 'experimental' directory. Josh [1] The location may move as things get reorganized, but it will remain on github. |