Apple Newton Utilities User's Guide Page 668

  • Download
  • Add to my manuals
  • Print
  • Page
    / 942
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 667
CHAPTER 18
Intelligent Assistant
18-22 Summary
// Optional. View template that defines task slip
taskslip : myTaskSlipView,
// internal use only - always put nil in this slot
score: nil,
// your additional slots and methods
…}
Action Template 18
// defines action words to Assistant
my_act := {
// string may be replaced in lexical parse
value: string , //Required.
// object type that this template creates
// must use this value or one descended from it
isa: 'dyna_user_action, // Required.
// Words or phrases to match with this template
lexicon: [string1, string2,…stringN],// Required.
}
Target Template 18
// defines object of an action to Assistant
my_Target := {
// string may be replaced in lexical parse
value: string , //Required.
// object type that this template creates
// must use this value or one descended from it
isa: 'dyna_user_obj, // Required.
// Words or phrases to match with this template
lexicon: [string1, string2,…stringN],// Required.
// your template can include your own slots as well
…}
Developer-Supplied Task Template 18
You must always supply a task template, which denes the application behavior
made available through the Assistant.
Page view 667
1 2 ... 663 664 665 666 667 668 669 670 671 672 673 ... 941 942

Comments to this Manuals

No comments