ArticleslgStudy

computer science

Desk accessory

Desk accessory is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Desk accessory rather than just read about it. In short: In computing, a desk accessory (DA) or desklet is a small transient or auxiliary application that can be run concurrently in a desktop environment with any other application on the system. Early examples, such as Sidekick and Macintosh desk accessories, used special programming models to provide a small degree of multitasking on systems that initially did not have any other multitasking ability.

Desk accessory — main illustration
Desk accessory — illustration

Key takeaways

  • Desk accessory belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Desk accessory to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Desk accessory from memory before moving on to harder problems.

Reference excerpt

In computing, a desk accessory (DA) or desklet is a small transient or auxiliary application that can be run concurrently in a desktop environment with any other application on the system. Early examples, such as Sidekick and Macintosh desk accessories, used special programming models to provide a small degree of multitasking on systems that initially did not have any other multitasking ability.

Personal information managers Early personal information managers, such as Norton Desktop and Borland's Sidekick, provided pop-up calculator, alarm, calendar and other functions for single-tasking operating systems like MS-DOS using terminate-and-stay-resident techniques.

Apple Macintosh Introduced in 1984 as part of the operating system for the Apple Macintosh computer, a Desk Accessory (DA) was a piece of software written as a device driver, conforming to a particular programming model. The purpose of this model was to permit very small helper-type applications to be run concurrently with any other application on the system. This provided a small degree of multitasking on a system that initially did not have any other multitasking ability. DAs were implemented as a special class of driver. It was installed in the driver queue, and given time periodically and co-operatively as a result of the host application calling SystemTask() within its main loop. A DA was permitted to have a user interface as long as it was confined to one main window. A special window frame with black title bar and rounded corners was reserved for the use of DAs so that the user could distinguish it from the windows of the hosting application. Typical early DAs included the Calculator and Alarm Clock. The control panel, Chooser, and Scrapbook were initially implemented as DAs. Third-party DAs such as spelling checkers could be purchased. It was considered hard to write a DA, especially early on when there was little in the way of developer tools. However, since on the early Mac OS drivers did not have any special privileges, writing a DA was, with practice, no more difficult than any other application. A special Font/DA Mover utility was used to change the configuration of DAs. Because DAs were not installed or launched in the same way that applications were, the user could not drag and drop DAs into or out of the system. They resided in the System file's 'DRVR' resources, like actual drivers, though they could be installed in any file whose resources were loaded into the memory, and were stored in "suitcases" when not installed in the system file. If installed within a separate application, such as MacWrite, their functionality would be accessible only when that application was running. That is, a desk accessory installed as a resource within an application would appear on the Apple menu as a desk accessory only when that application was active. It could then be activated while the application was run and would then disappear when the application was terminated through the Quit function. (Similarly, the FKEY resources could be installed either within the System so as to be universally available, or within an application so as to be available only when that application was active). As a resource numbering scheme was implemented for marking resources as belonging to another resource of some particular type and number in the same file, such as a DA ('DRVR'), it was possible for desk accessories to have a limited "resource fork" of their own within the file they were contained in; the mover utility recognised such resources and moved them along with the actual DA code resource they were associated with. With the advent of System 7, which included a standard cooperative multitasking feature, the need for DAs diminished greatly, and developers were encouraged to develop small applications instead. The system continued to run DAs (and still does up to Mac OS 9.x) for backward compatibility. Under System 7 and later, DAs could be moved and renamed using the Finder like normal applications, removing the need for Font/DA Mover and confining suitcases to font management. When a DA was run under System 7, it always executed in the Finder's address space. The icon for a desk accessory program under System 7 and later is roughly a reversed version of the application icon, with the writing hand on the left side instead of the right. A similar mechanism to allow small utility programs to run along with regular applications was also present in the operating system for the Apple IIGS and Apple IIe.

GEM

GEM resembled the Macintosh closely in many respects. One example was the presence of desk accessories, for the same reason: to allow multiple programs to be used in a system that only supported one full application at a time (although GEM desk accessories used task switching and not cooperative multitasking like the Macintosh.) From a programming point of view, desk accessories were implemented, like other GEM applications, as DOS .EXE files, with names ending with .ACC (Accessory) rather than .APP (Application). Each .ACC file could support multiple accessories; all three of the standard GEM accessories (Calculator, Clock and Print Spooler) were provided by CALCLOCK.ACC. Installation was simply a matter of placing the .ACC in the correct directory - \GEMBOOT in earlier versions, and \GEMAPPS\GEMSYS in GEM/3 and later. Since each desk accessory loaded reduced the amount of memory available for programs, one technique for temporarily increasing available space was to rename one or more .ACC files to have a different suffix (usually .ACX) and restart GEM. On the Amstrad PC-1512, for example, the Snapshot accessory was shipped as SNAPSHOT.ACX and had to be renamed to .ACC prior to use. Desk accessories continued to be supported in ViewMAX, the DR-DOS file manager, which was supplied with almost unchanged versions of Calculator and Clock.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Desk accessory

Start with the simplest possible case. Write down what Desk accessory claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Desk accessory before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Desk accessory ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Desk accessory

In research
Desk accessory appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Desk accessory in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Desk accessory is common in secondary-school and first-year university syllabi. It links to neighbouring topics Graphical user interfaces, Macintosh operating systems, Palm OS software, so understanding it makes those chapters shorter.
In everyday life
Look for Desk accessory outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Desk accessory” →

How to study Desk accessory in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Desk accessory means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Desk accessory out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Desk accessory in simple terms?

In computing, a desk accessory (DA) or desklet is a small transient or auxiliary application that can be run concurrently in a desktop environment with any other application on the system. Early examples, such as Sidekick and Macintosh desk accessories, used special programming models to provide a…

Why does Desk accessory matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Desk accessory?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Desk accessory.

Tags

  • Graphical user interfaces
  • Macintosh operating systems
  • Palm OS software

Keep exploring