Creator code

related topics
{system, computer, user}
{math, number, function}
{film, series, show}
{law, state, case}
{line, north, south}

A creator code is a mechanism introduced in pre-Mac OS X versions of the Macintosh operating system to link a data file to the application program which created it, in a manner similar to file extensions in other operating systems. Codes are four-byte OSTypes. For example, the creator code of the HyperCard application and its associated "stacks" is WILD. This allows the application to launch and open a file whenever any of its associated files is double-clicked.

Creator codes could contain numbers and some special characters. Occasionally they represented inside jokes. For instance, the Marathon computer game had a creator code of 26.2 (the approximate length, in miles, of a marathon) and Marathon 2 had a creator code of 52.4.

The key difference between extensions and Apple's system is that file type and file ownership bindings are kept fully distinct. This allows files to be written of the same type - TEXT say - by different applications, and freely opened by any application that can read TEXT files, but when double-clicked, will open the original application that created it. With the extensions approach, this distinction is lost - all files with a .txt extension will be mapped to a single text editing application.

Mac OS X retains creator codes, but supports extensions as well. However, beginning with OS X 10.6 Snow Leopard, creator codes are ignored by the Operating System.

Apple's developer documentation states that applications should continue to set type codes and optionally set creator codes. If either already exists, applications should preserve them.[1] Furthermore, creator codes are used in document binding prior to the file extension alone.[2]

Creator codes are not readily accessible for users to manipulate, although they can be viewed and changed with certain software, most notably the Mac OS X command line tools GetFileInfo and SetFile which are installed as part of the developer tools into /Developer/Tools.

References

See also

External links

Full article ▸

related documents
Synchronized Multimedia Integration Language
Adapter pattern
Run-length encoding
Maclisp
Portable Distributed Objects
Program counter
Triple DES
Z3 (computer)
Debugger
Time to live
Monolithic kernel
XPCOM
CHS conversion
Pseudonymous remailer
OpenGL Utility Toolkit
ScriptBasic
Karplus-Strong string synthesis
G.711
Display PostScript
Korn shell
IBM 1620 Model I
386BSD
RenderMan Interface Specification
Access control list
SAPHIRE
IBM 704
Transclusion
Fluent, Inc.
Wikipedia:Free On-line Dictionary of Computing/I - K
Dictionary attack