Apple Newton Utilities Guide de l'utilisateur Page 613

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 942
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 612
CHAPTER 16
Find
Using the Find Service 16-25
The following code fragment shows how to use the statusView parameter to
display a progress message to the user:
MyAppplicationBase.Find:=
func(what, results, scope, statusView)
begin
if statusView then
statusView:SetMessage("Searching in" &
GetAppName(kAppSymbol)&
$/u2026);
...
end;
There are several ways to obtain the application name string that replaces the
appName variable; they are listed here in order of recommended use:
You can retrieve this string from the appName slot in your application’s base view.
You can retrieve this string from the title slot in your nder frame.
You can retrieve this string by calling GetAppName(kAppSymbol);
Registering for Finds 16
Applications registered with the Find service participate in Global nds; they also
participate in selective nds when specied by the user.
You do not need to register with the Find service to support Local nds. Global
and Local nd support use the same mechanism, which relies on the
Find and
ShowFoundItem methods that your application supplies. A Global find is simply
a series of Local nds initiated by the system in applications that have registered
for participation in Global nds.
Use the
RegFindApps function to register your application with the Find service
and its counterpart, the
UnRegFindApps function, to reverse the effect. You
should call these functions from your application part’s
InstallScript and
RemoveScript functions.
Vue de la page 612
1 2 ... 608 609 610 611 612 613 614 615 616 617 618 ... 941 942

Commentaires sur ces manuels

Pas de commentaire