I hate .textClipping files, they are some kind of bastard implementation of a file. They really aren't terribly useable but they are easy to create and so show up far too often. I've never looked into the format but I don't understand why Apple didn't just make them txt or rtf files. Instead they created a specially functioning file that is not well supported.
.textClipping files are supported as expected if you drag from the Finder to an open document in TextMate, i.e. the contents are inserted at the insertion point.
Dropping a .textClipping file on TextMate's app icon opens a new empty window with the textClipping's name. Desired behavior would be to display the textClipping's contents. Bonus points for making the textClipping editable!
Selecting a textClipping in the project drawer displays an empty window with the title set to the textClipping file's title. Desired behavior would be to display the textClipping's contents. Bonus points for making the textClipping editable.
Dragging a textClipping file from a project window to the currently displayed document results in no change to the current document. Desired behavior is to insert the contents of the textClipping file at the insertion point, i.e. the same behavior as dragging from the Finder.
thanks for listening!
About text clipping files... anyone happen to have a good link to a place describing the exact file format etc.?
For historical reasons, it's a purely Resource Manager resource-based format. Select some text in any application, drag it to the Finder to create a "*.textClipping" file, and then run /Developer/Tools/DeRez on it to examine the resources.
(IIRC, clippings were originally introduced with the classic Mac OS Drag Manager in 1993. The idea was that they'd have the unique property of being viewable directly in the Finder. At the time, this was nice, and text and picture (PICT) clippings were supported by the system, but Apple never followed through with content type plugins for third party content, or even more advanced built-in formats, so application support was likewise limited. Also keep in mind that this was when the Finder was considerably more consistent and usable than it is today, and there wasn't a ridiculous ".textClipping" extension tagged to clippings...)
Chris
On Oct 7, 2004, at 1:29 PM, Sune Foldager wrote:
About text clipping files... anyone happen to have a good link to a place describing the exact file format etc.?
-- Sune. "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn" http://cyanite.org -- Content follows ;-).
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate