Apple Newton Utilities Uživatelská příručka Strana 602

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 942
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 601
CHAPTER 16
Find
16-14 Using the Find Service
If your application does not store data as soup entries, you can use the
ROM_CompatibleFinder proto as the framework from which to create your
nder frame. Although
ROM_CompatibleFinder provides most of the services
that
ROM_SoupFinder does, it does not respond to messages sent by the system
when the user les, deletes, or moves items in the Find overview. The following
methods have the same denitions in the
ROM_CompatibleFinder as they have
in the
ROM_SoupFinder. If you use ROM_CompatibleFinder proto, in most
cases, you must dene the following methods to work on your data structures:
FileAndMove
Delete
IsSelected
SelectItem
ForEachSelected
GetTarget
The commonality of denition between these methods causes problems in some
cases. For instance, when used with the
ROM_CompatibleFinder proto, the
ForEachSelected method must be overridden because it is expected to return
an array of soup entries.
The
ROM_CompatibleFinder proto has the two following methods which are
not found in the
ROM_SoupFinder proto:
ShowFakeEntry
ConvertToSoupEntry
When you use the ROM_CompatibleFinder proto, you should dene a
ShowFakeEntry method that makes sure your application is open, and calls your
ShowFoundItem method.
The convenience method,
ConvertToSoupEntry, returns a soup entry when
given a data item as a parameter.
Implementing Search Methods 16
Your application conducts searches in response to messages that it receives from
the system. You must supply a search method for each message that your application
supports. These methods are usually dened in your application’s base view;
they include:
Find
DateFind
FindTargeted
DateFindTargeted
Zobrazit stránku 601
1 2 ... 597 598 599 600 601 602 603 604 605 606 607 ... 941 942

Komentáře k této Příručce

Žádné komentáře