ToolTalk User's Guide

The Smart Desktop

A common user requirement for a graphic user interface (GUI) front-end is the ability to have data files be aware (or “know”) of their applications. To do this, an application-level program is needed to interpret the user's requests. Examples of this application-level program (known as smart desktops) are the Apple Macintosh finder, Microsoft Windows File Manager, and the Solaris File Manager. The key common requirements for smart desktops are:

  1. Takes a file

  2. Determines its application

  3. Invokes the application

The ToolTalk Service encompasses additional flexibility by allowing classes of tools to edit a specific data type. The following scenario illustrates how the Desktop Services Message Set might be implemented as a smart desktop transparent to the end-user.

  1. Diane double clicks on the File Manager icon.

    • The File Manager opens and displays the files in Diane's current directory.

  2. Diane double clicks on an icon for a data file.

    1. The File Manager requests that the file represented by the icon be displayed. The File Manager encodes the file type in the display message.

    2. The ToolTalk session manager matches the pattern in the display message to a registered application (in this case, the Icon Editor), and finds an instance of the application running on Diane's desktop.


      Note –

      If the ToolTalk session manager does not find a running instance of the application, it checks the statically-defined ptypes and starts an application that best matches the pattern in the message. If none of the ptypes match, it returns failure to the File Manager application.


    3. The Icon Editor accepts the display message, de-iconifies itself, and raises itself to the top of the display.

  3. Diane manually edits the file.