Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Clipboard contains two versions of Numbers clipping' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Clipboard contains two versions of Numbers clipping
Authored by: billclinton on May 12, '09 02:20:04PM

Hmm.... This situation is slightly weird. It seems that when cutting from Numbers, the clipboard retains both a PDF version and a "table" version of what you cut. If you paste into e.g. TextEdit or Pages, you get the table version with editable entries and cell adjustments. When going through Preview, it sees the PDF version on the clipboard and upon Command-N makes a new PDF document. Preview does not do the conversion—it can't know, from merely the "table" version, how the table looked in Numbers (with, e.g., background colors). If you select, say, some random text and open Preview, the "New from Clipboard" is disabled.

Also, iClip reports the Numbers clipping as a PDF, so it doesn't even see the "table" version. (Although it does not interfere with the pasting behavior I described above.)



[ Reply to This | # ]
Clipboard contains two versions of Numbers clipping
Authored by: gopes on May 12, '09 08:35:31PM
When going through Preview, it sees the PDF version on the clipboard and upon Command-N makes a new PDF document. Preview does not do the conversion—it can't know, from merely the "table" version, how the table looked in Numbers (with, e.g., background colors). If you select, say, some random text and open Preview, the "New from Clipboard" is disabled.
Preview will make a new PDF from a text box copied to the clipboard. I really have no idea, but Preview doesn't seem to be copying the pixels from the rasterized version for display (a screenshot).

In any case, the clipboard is pretty clever; my other favorite feature is that it copies an actual web page out of (at least) WebKit apps. That is, if you select from "Post Mode" below this entry box down to below the 'Preview' button and pasting into, for example, an email in Mail, you'll have copied not just the formatting and the buttons, but background blocks as well (i.e. I can 'close' the 'Important Stuff' section by clicking it and clicking the close button).

[ Reply to This | # ]

Clipboard contains two versions of Numbers clipping
Authored by: beepotato on May 13, '09 02:52:42AM
This situation is actually not weird at all.
It was an innovation of the Macintosh clipboard to be able to store multiple representations of the same data, as can be read in the last paragraph of this story: http://www.folklore.org/StoryView.py?project=Macintosh&story=The_Grand_Unified_Model.txt.

Ideally, an application in which the user cuts (or copies) some data should put on the clipboard as many representations of the data as it can. The application in which the user pastes the data will then pick the type (of the ones it can handle) best suited to the situation.
This is what allows an application that handles only plain text to paste formatted text that the user copied from somewhere else: the application does not have to go through the formatted text data in the clipboard and remove formatting itself. There is already a plain text representation of the same data available on the clipboard.

Here, when a table is copied in Numbers, the application puts the table data (understandable only by iWorks applications) on the clipboard, but also graphical representations of the table in PDF, TIFF and PICT, as well as RTF and plain text representations. When pasting, Pages will use the iWorks table data, as it is the representation with the most information and it can handle it. But Preview, only able to handle graphics, will pick the best graphical representation, i.e. the PDF.

[ Reply to This | # ]
Clipboard contains two versions of Numbers clipping
Authored by: billclinton on May 13, '09 03:46:39PM
It was an innovation of the Macintosh clipboard to be able to store multiple representations of the same data, as can be read in the last paragraph of this story: http://www.folklore.org/StoryView.py?project=Macintosh&story=The_Grand_Unified_Model.txt.
Well, that's certainly an interesting link. I've known of the styled/plain text example but for some reason, seeing this obvious clipboard behavior explained from 1981 strikes me as more than a little interesting. Thanks.

[ Reply to This | # ]