Creator code

Creator code
The creator code is responsible for linking the file and the program that will launch when the file is double-clicked. This Mac OS window show four files of the same type code (MP3), but with four different creator codes: Audn (Audion), hook (iTunes), SCPL (SoundApp) and NSWa (Winamp).

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.

The binding are stored inside the resource fork as BNDL and fref resources. These resources maintained the creator code as well as the association with each type code and icon.

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: Durandal 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.). Creator codes have been internally superseded by Apple's Uniform Type Identifier scheme, which manages application and file type identification as well as type codes, creator codes and file extensions.

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


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Code of Hammurabi — Code on clay tablet Code on diorite stele The Code of Hammurabi is a well preserved Babylon …   Wikipedia

  • Code of Vengeance — Title card for the 1985 TV movie Also known as Dalton and Dalton s Code of Vengeance Genre …   Wikipedia

  • Code of the Secret Service — Directed by Noel M. Smith Produced by Bryan Foy Hal B. Wallis Jack Warner Screenplay by William H. Moran Lee Katz Dean Riesner …   Wikipedia

  • Code::Blocks — Code::Blocks …   Википедия

  • Code-Faltung — oder Code Folding bezeichnet eine Funktion in Editoren, insbesondere in modernen integrierten Entwicklungsumgebungen, um logisch zusammengehörende Quelltextabschnitte wie Klassen oder Methoden in sogenannten Folds bzw. Falten zu gruppieren. Man… …   Deutsch Wikipedia

  • Code of the Lifemaker — (ISBN 0 345 30549 3) is a 1983 novel by science fiction author James P. Hogan. NASA s Advance Automation for Space Missions was the direct inspiration for this novel detailing first contact between Earth explorers and the Taloids, clanking… …   Wikipedia

  • Creator deity — A creator deity is a deity responsible for the creation of the world (or universe). In monotheism, the single God is often also the creator deity, while polytheistic traditions may or may not have creator deities. A number of monolatristic… …   Wikipedia

  • Code::Blocks — Not to be confused with the computer programming term code block. Code::Blocks Code::Blocks 10.05 running on Windows Vista …   Wikipedia

  • Code (semiotics) — For other uses, see Code (disambiguation). Semiotics General concepts Biosemiotics · Co …   Wikipedia

  • Type code — A type code is the only mechanism used in pre Mac OS X versions of the Macintosh operating system to denote a file s format, in a manner similar to file extensions in other operating systems. Codes are four byte OSTypes. For example, the type… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”