NTK Reference

The Browser

The browser is the tool provided by NTK to allow editing the slots in a template. To create the browser window, select New Browser in the Window menu. The browser window has three parts (see FIGURE A.25).

The top left shows a list of templates and their hierarchical relationship. The top right shows the slots in the template that is selected on the left. And the bottom of the browser shows the slot editor for the selected slot. In FIGURE A.25, you see a browser window with a protoApp template selected on the left, its title slot selected on the right and the contents of its title slot shown below.

FIGURE A.25 : The browser window.


The New Browser window creates a browser for the selected templates in a layout. The topmost parent you have selected is the topmost template shown in the browser window (see FIGURE A.26).


Note:Another way to open a browser window is to double-click on a template in a layout window. A third way is to select New Browser while a layout is selected in the project window (a shortcut is just to double-click the layout from the project window).


You will spend a majority of your time in the browser. It is here that you will add the methods to your application and any specialization in each template's appearance.

FIGURE A.26 : Creating browsers on various templates in a layout.


The Template Area of the Browser
The Slot List of the Browser
Deleting and Renaming Slots
Adding Slots

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

Last modified: 1 DEC 1996