Gestalt (Mac OS)

Gestalt (Mac OS)

Gestalt was the name of a system call introduced into the Apple Macintosh operating system System Software 6.0.4 in 1989 to allow applications to dynamically query what capabilities were present in the running system configuration. [http://developer.apple.com/documentation/Carbon/Reference/Gestalt_Manager/Reference/reference.html Gestalt Manager Reference] ]

By this time, the pace of Mac development had produced such a proliferation of hardware configurations and hardware and software add-ons from Apple and third parties that a simple version check was no longer enough to determine the features of the system. Instead, Gestalt maintains a dynamically-extensible table of OSType selector codes.

For instance, instead of checking the system version to deduce what version of the Sound Manager might be present, there is a separate Gestalt selector for directly querying the capabilities of the Sound Manager. Thus, it could be made possible for an application dependent on capabilities introduced in a newer Sound Manager to run on an older system which had the updated Sound Manager installed as an add-on, as well as on a newer system which had the new Sound Manager built-in. And of course the Sound Manager add-on could also query this Gestalt selector first to decide whether there was any point in installing itself into the current system.

The value returned by querying a selector code is 32 bits, whose meaning depends on the selector. Some selectors define this as a version code, while others use it as a bit mask of available capabilities. Some subsystems define both types of selectors, allowing querying of both the version number and the capabilities. Some even use a Gestalt selector to pass the address of a shared block of data, or even the address of code that could be called. Since the piece of code that installed a Gestalt selector could either install a simple static value or a callback that Gestalt would invoke every time somebody queried the selector, it was possible for the value returned to vary dynamically from call to call, to reflect information about the current state of the subsystem.

The Macintosh Programmer's Workshop also provided a tool named Gestalt which allowed the developer to test for various features using the command line. [http://developer.apple.com/tools/mpw-tools/commandref/gestalt.html Gestalt command reference] ]

Origin of the Name

Gestalt is a school of psychology that attempts to describe the whole of mental activity by analysing its parts, and is often associated with the phrase "The whole is different (or more) than the sum of its parts". In the German language, this word means "shape".

References


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Gestalt — Die Gestalt is a German word for form or shape. It is used in English to refer to a concept of wholeness (see wiktionary). Gestalt may also refer to:* Gestalt psychology (or Gestalt theory), a theory of mind and brain, describing the Gestalt… …   Wikipedia

  • Mic-Mac — Wohngebiet Ehemaliges Stammesgebiet der Mi kmaq Systematik Kulturareal …   Deutsch Wikipedia

  • Manannan mac Lir — ist eine irische Sagengestalt. Sie galt als der Sohn des Meeres Lir und Lokalgeist oder Verkörperung der Isle of Man. Beinamen sind Lodan und Oirbsen . Als Lodan ist er der Vater der Göttin Macha oder Sinend, als Oirbsen ist er der Geist des Sees …   Deutsch Wikipedia

  • Find Mac Cumaill — oder richtiger Fionn Mac Chumhail (d. h. Sohn des Chumhail), ein historischer Fürst in Irland (gest. 273 n. Chr.), der aber in der Mythe seines Volkes zu einem Welteroberer anwuchs, ungefähr wie König Artur. Sein Sohn war Ossín. Echte alte Lieder …   Meyers Großes Konversations-Lexikon

  • Lug Mac Ethnenn — Lug Mac Ethnenn,   Gestalt der keltischen Mythologie, Vater des Cú Chulainn. Lug ist die irische Variante einer gesamtkeltischen Gottheit Lugus, deren Bedeutung u. a. durch zahlreiche Inschriften, Abbildungen und Ortsnamen auch im… …   Universal-Lexikon

  • Macintosh Quadra 605 — Mac specs| October 21 1993|MSRP=970, 1000, 1300|CPU=Motorola 68LC040 CPUspeed=25 MHz|OS=Mac OS 7.1 7.5.1, 7.5.3, 7.5.5 8.1 or with PowerPC upgrade, Mac OS 9.1|RAM=4 MB, expandable to 36 MB (official) or 132 MB (later)|RAMtype=80 ns 72 pin SIMM… …   Wikipedia

  • Monkey Island — Titellogo Monkey Island [ˈmʌŋki ˈaɪlənd] ist eine fünfteilige Grafik Adventurereihe nach einer Idee von Ron Gilbert, der auch maßgeblich an der Entwicklung der ersten beiden Teile beteiligt war, bevor er in den frühen 1990er Jahren die Firma… …   Deutsch Wikipedia

  • Belakane — Hochmittelalterliche Darstellung der Hölle im Hortus Deliciarum Manuskript (um 1180) Der Begriff Mohr ist eine seit dem Mittelalter verwendete Bezeichnung für Menschen mit dunkler Hautfarbe, zum Beispiel historisch in Bezug auf Kuschiter und… …   Deutsch Wikipedia

  • Big Whoop — Monkey Island Monkey Island [ˈmʌŋki ˈaɪlənd] ist eine vierteilige Grafik Adventurereihe nach einer Idee von Ron Gilbert, der auch maßgeblich an der Entwicklung der ersten beiden Teile beteiligt war, bevor er in den frühen 90er Jahren die Firma… …   Deutsch Wikipedia

  • Escape from Monkey Island — Monkey Island Monkey Island [ˈmʌŋki ˈaɪlənd] ist eine vierteilige Grafik Adventurereihe nach einer Idee von Ron Gilbert, der auch maßgeblich an der Entwicklung der ersten beiden Teile beteiligt war, bevor er in den frühen 90er Jahren die Firma… …   Deutsch Wikipedia

Share the article and excerpts

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