Common View Slots

viewClass

FIGURE 5.8 : The viewClass slot of a clView.


This slot contains the primitive view class that underlies the view (see FIGURE 5.8).

Each template is ultimately based (through inheritance) on one of a handful of primitive view classes. Each primitive view class corresponds to a C++ class object that is part of the underlying view system architecture. The view class affects the behavior and appearance of the view on the Newton. There are ten primitive view classes:

clView
This view class serves as a very useful generic view. You will use these all the time, particularly when you need a container view or other kind of view that does not have many built-in behaviors associated with it.

clPictureView
Used whenever you want a container for a picture.

clEditView
This view can have either text or graphics children in it.

clParagraphView
A view for text that commonly has a clEditView as a parent.

clPolygonView
A view that contains shapes and commonly has a clEditView as a parent.

clKeyboardView
Used to define keyboard views that are arrays of buttons upon which you can tap.

clMonthView
Creates a month view with selectable dates.

clRemoteView
Used for a view that displays another view. Scaling is provided to enable the display of the entire remote view. You might use this when providing a page preview feature in your application.

clPickView
This view provides a picker with a popup list from which you can pick. Either text or graphics can be displayed.

clGaugeView
A view that provides a gauge that can be changeable or read-only.


An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996