How Documents Know Their Parents
Every operating system needs a mechanism to associate documents with the applications that created them. When you double-click a Microsoft Word document icon, for example, it’s clear that you want Microsoft Word to launch and open the document.
So how does Mac OS X know how to find a document’s mommy?
It actually has two different mechanisms.
File name extensions. A file name extension is a suffix following a period in the file’s name, as in Letter to Mom.doc. (It’s usually three letters long, but it doesn’t have to be.) These play a role in determining which documents open into which programs.
Get Mac OS X Lion: The Missing Manual now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.