Apple Newton Utilities Guide de l'utilisateur Page 615

  • 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 614
CHAPTER 16
Find
Summary 16-27
myCompatibleFinder:= {// Use to find data stored in
// non-soup data structures.
//Override most to fit your data.
_proto: ROM_CompatibleFinder,
owner:self, // Required. View that gets ShowFoundItem
// message;usually your app's base view.
title: "My Application",// Displayed in Find overview;
// usually inherited from owner.
findType:'text// Can also be 'dateBefore,
//'dateOn, or 'dateAfter.
findWords:[textOrDate]// Text or date to find.
items:[// Array of the items found by your search.
{_proto: myFoundItem, //Optional; but better
//to reference data as it
//gets altered destructively.
title: "My Application",//String displayed in
//Find overview.
},
{ /* and other such frames... */ },
]
selected: [], // Internal array of selected items.
ConvertToSoupEntry: func(item),//Return a soup entry
//corresponding to data item.
Count: func(),//Returns number of found items;
// don’t override.
Delete: func(), // Deletes all selected items.
FileAndMove: func(labelsChanged,newLabel,
storeChanged,newStore),
// Files and/or moves selected items
ForEachSelected: (callbackFunction), // Calls callback
// function for each selected
// found item; don’t override.
GetTarget: func(), //Returns target frame; for routing
IsSelected: func(item), // Returns true if item is
// selected; don’t override.
ReSync: func(), // Resets finder to its initial
// state; do not override.
SelectItem: func(item), // Marks item as selected
ShowFakeEntry: func(index), // Displays the index(th)
// number found item. Replaces
// ShowFoundItem in compatabile finder.
}
Vue de la page 614
1 2 ... 610 611 612 613 614 615 616 617 618 619 620 ... 941 942

Commentaires sur ces manuels

Pas de commentaire