File types are normally determined by the presence of loaders and savers, although additional types can come from other sources. One-off file types can be defined in resources. The hash key should be the unique name for the specific file format, and is the value passed to the save dialog. The Class is the value passed to the load dialog for building a list of, types for the same class of data object. This allows multiple format choices when loading, although this is typically not used by plug-ins.
1 2 3 4 5 6 7
<atom type="FileSystem"> <hash type="FileType" key="lxir"> <atom type="Class">irrad</atom> <atom type="Pattern">*.lxi</atom> <atom type="Extension">LXI</atom> </hash> <atom>
The user name for the format comes from the “filetypes” message table using the same hash key.