Re: Bonobo Clipboard, try #1



ERDI Gergo <cactus cactus rulez org> writes:

> The clipboard
> server manipulates monikers only -- a set of two monikers, one for pasting
> and one for linking. The data source application is responsible for
> providing (1) a pasting moniker that is guaranteed to last for the
> lifetime of the clipboard contents, and (2) an optional linking moniker
> that is guaranteed to be permanent.

If you run Photoshop, select a huge region of an image, and you do
Edit/Copy, "nothing" happens, i.e. it seems to take up no memory.
When you do a Paste within Photoshop, it of course does the right
thing.  However, if you try to exit the application, it will tell you
something like

	You have a lot of stuff on the clipboard that would take up a
	lot of memory if you decided to leave it there.  Do you want to

	    [Leave the data in the clipboard]   [Clear the clipboard]

Of course, when pasting (not linking) into another application, you
get a humongous image copied over.

I assume your case (1) would deal with this kind of thing --- an
application potentially having a great amount of data in the
clipboard, and it having to ask you what to do.

How would this work, though?  At runtime do you slap a moniker for
"gimp:image-region:(x1,y1)-(x2,y2)" and when you exit the GIMP, if the
user actually selects to leave the data in the clipboard, do you slap
a moniker for "humongous-serialized-image:WWHHRGBRGBRGB..."?

  Federico




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