Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 7 - Text Services Manager / About the Text Services Manager


The Text Services Environment

The text services environment is a structure for the efficient flow of information between client applications and text service components. It allows client applications to obtain text services without having to know anything about the specific text service components performing them. Likewise, it allows text service components to perform their services without having to know anything about the specific client applications making the requests.

The text services environment consists of a client application, a text service component, the Apple Event Manager, the Component Manager, and the Text Services Manager. For a client application to work within the text services environment, it must

For a text service component to work within the text services environment, it must

Figure 7-4 shows some of the flow of information in the text services environment when a TSM-aware application uses a text service component. Application-level calls that an application makes to the Text Services Manager application interface are converted to component-level calls that are passed to an individual text service component. The text service component in turn makes calls to the Text Services Manager component interface; those calls are converted to Apple events that are passed on to the application.

The Text Services Manager controls the overall process by keeping track of which text service components are available to a given application and which application is to receive data from a given text service component. The Text Services Manager communicates with text service components through the Component Manager; applications that have special needs can likewise communicate directly with individual text service components by calling the text service component routines.

Figure 7-4 How a TSM-aware client application uses the Text Services Manager

IMPORTANT
The event-handling structure of the Text Services Manager requires that the low-memory global variable SEvtEnb be nonzero. If your application sets SEvtEnb to 0 to force the Event Manager function SystemEvent to always return a value of FALSE, text service components do not function correctly. See Inside Macintosh: Macintosh Toolbox Essentials for more information on the SystemEvent function and the SEvtEnb global variable.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996