C H A P T E R 3
Each of the three return values contains three elements:
Element 0: the subview that is highlighted. This subview is usually
, but you need to check to make sure. A
is not returned here even if
child is highlighted.
Element 1: the start position of the text found in the text slot of a
Element 2: the end position of the text found in the text slot of a
To verify that your view is a
, check the
the view. The value returned (dynamically) sometimes has a high bit set so you
need to take it into consideration using a mask constant,
theView.viewClass - vcClassMask=clParagraphView
If a graphic is highlighted and
, check its
view children for non-
values of the '
slot (the '
slot is for
use in any view but its contents are private).
Complex View Effects
If you have an application that uses
in numerous places, your
view may close immediately, but to the user the Newton may appear to be hung
during the long calculations. A way to avoid this is to have the view appear open
until the close completes.
You can accomplish this effect in one of two ways. First, put your code in
. Second, remove the view's
and manually force the effect at the end of
Making Modal Views
A modal view is one that primarily restricts the user to interacting with that view.
All taps outside the modal view are ignored while the modal view is open.
In the interest of good user interface design, you should avoid using modal views
unless they are absolutely necessary. However, there are occasions when you may