This example demonstrates how applications can export
Services
to other applications (they will appear in other applications' Services menu). AtYourService's services may be enabled or disabled via its Preferences panel (applications exporting services should provide some user interface for disabling the service, preventing the services menu from becoming overly cluttered).\
Services are facilities that other applications can take advantage of. The Application requesting Services does nothing but indicates which kinds of data it is willing to send and receive. A service provider (like this application) accepts data on one of the system pasteboards and processes it. This data may or may not be returned to the requestor. AtYourService provides a number of simple text services, that will appear on other applications "Services" menu. "Edit" is a good application to try this out with.\
\b0 You can specify which columns AtYourService will use when sorting your data by using the
\i Set Sort Fields...
\i0 function. This will present you with a panel where you can specify which field (or column) will start and end your sort data. Fields are numbered starting at one (not zero). Normally a blank space would be used to separate fields, but on this panel you can also specify an alternate separator character.\
Installation Notes:\
\b0 \
This application should be placed in a directory on your path (like ~/Apps, or one of the well known system Apps directories). To see the services appear, you should log out and log back in to see the services menus updated. The easiest way to Install AtYourService is to do a "make install" in the source directory. The "AtYourService" binary must be in your ApplicationPath, not "AtYourService.debug" (the file IB makes).\
Enabling and disabling services only takes effect for applications that have not been launched yet. To update the Services menu, you should quit and restart the application.\
\b0 the main delegate for AtYourService. This object is the Application's and Services delegate, and contains all of the Services methods.\
\b DefaultHandler
\b0 Handles interactions with the Defaults system.\
\b ServicesHandler
\b0 handles requests to enable and disable services from the Preferences panel.\
\b Verifier
\b0 a text delegate that tests the validity of data entered on a text field. The tag is used to store the valid length, and the EntryType in the TextField is used to store the datatype (see the DefaultHandler object, where this is set up).\
\b0 Makefile.preamble contains a line that installs the services icon section when you are making AtYourService. Service providers should use a similar Makefile.preamble to make sure that the Services section is installed.\
\pard\tx660\tx1320\tx2000\tx2660\tx3320\tx4000\tx4660\tx5320\tx6000\tx6660\fc0 Not valid for 1.0\