Dan Wood: The Eponymous Weblog

Dan Wood is co-owner of Karelia Software, creating programs for the Macintosh computer. He is the father of two kids, lives in the Bay Area of California USA, and prefers bicycles to cars. This site is his weblog, which mostly covers geeky topics like Macs and Mac Programming.

Useful Tidbits and Egotistical Musings from Dan Wood

Categories: Mac OS X · Cocoa Programming · General · All Categories

Tue, 01 Apr 2003
Here's something kind of cool. It's possible to embed files of any type inside a TextEdit "rtfd" document, much like you'd put attachments in an e-mail message! (But see the caveat below!)

Putting attachments in your file is easy -- just drag a file (or folder) into your document. (The icon will now be placed in with the text.) The "receiver" of the document can just drag the icon out to their desktop.

The caveat: Be careful when saving your document with the embedded files. If you had changed the file externally, and then you save your document containing that file, you will lose your changes!

(Note: There's a Mac OS X Hints article similar to this tip, and it discusses possible security implications of embedded applications.)