Apple Newton Utilities User's Guide Page 783

  • Download
  • Add to my manuals
  • Print
  • Page
    / 942
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 782
CHAPTER 21
Routing Interface
Using Routing 21-35
not provide a view denition, and there are no other view denitions available for
that data class, the In/Out Box displays a generic blank view for the item. Items
formatted with the
'view data type do not need a separate view denition because
the In/Out Box itself provides a page preview view for these items.
Of the view denitions registered by your application, you can identify which
should be made available to the In/Out Box and which should be hidden from the
In/Out Box, by setting the
protection slot in the view denition. Set the
protection slot to 'public to make the view definition available to the In/Out
Box. Set the
protection slot to 'private to hide the view denition from the
In/Out Box.
If more than one view denition is available to the In/Out Box for viewing an item,
the In/Out Box lets the user choose which view they want to see.
Note that view denitions for In Box items are opened by the In Box in a read-only
state. That is, if the view denition is of the type
'editor, the user won’t be able
to edit existing elds or write in new information. In other words, all child views
based on the
clParagraphView class are read-only. However, views can receive
and respond to taps; that is,
ViewClickScript messages are sent. If you want to
prevent your view denition from receiving all pen input, you can place a transparent
view of the
clView class over the top of it to catch any taps.
Out Box items are opened in a writable state, if they are normally writable; that is,
the Out Box does nothing special to prevent editing if the view is editable. You may
want to make your out box items writable or not, depending on whether or not you
want the user to be able to change them in the out box.
You can use the
newtEntryView method EntryCool to test if an item in the
In/Out Box is writable or not. This method returns
nil for all In Box items, since
they are read-only.
Note also that application view denitions used in the In/Out Box must not expect
data dened within the context of the application.
For more information about writing and registering view denitions, refer to
Chapter 5, “Stationery.” Note that the In/Out Box does not need data denitions,
only view denitions.
View Denition Slots 21
View denitions to be used by the In/Out Box have other slots of interest besides
the
target slot.
One other slot of interest is named
fields. When the view is open, the fields
slot contains a reference to the In/Out Box entry. If the entry has a
body slot and
the
body slot contains a frame with a class slot, then the In/Out Box sets
target to the body slot of the entry. This allows view definitions written for your
application to be used by the In/Out Box without modication. If you need to
Page view 782
1 2 ... 778 779 780 781 782 783 784 785 786 787 788 ... 941 942

Comments to this Manuals

No comments